boolean always returning false;
Ok so i have this
publicstaticboolean testAuth(){
try{
BufferedReader authReader =new BufferedReader(new FileReader("auth.txt"));
String auth = authReader.readLine();
authReader.close();
URL authUrl =new URL("http://hvc3.com/authTest.php?auth="+auth);
BufferedReader urlReader =new BufferedReader(new InputStreamReader(authUrl.openStream()));
String authResponse = urlReader.readLine();
System.out.println(authResponse);
if(authResponse =="active"){
returntrue;
}else{
returnfalse;
}
}catch (IOException e){
returnfalse;
}
}
this is my console outpot:
kevin-roses-computer:~/Desktop kevinrose$ java test
active
NOO
sorry its not the exception i dot knw whats wong:
Message was edited by:
krrose27

