Possible Duplicate:
How do I compare strings in Java?
I check the internet and google about how to break in a while loop and checked it again but it seems not to break. and i lost hope tryin anymore
i run this code
int i = 0;
while( i <= 1236){
System.out.println(i + " svarer til: "+md5(Integer.toString(i)));
if(md5kryp == md5(Integer.toString(i))){
System.out.println("Den dekryperet kode er: " + i);
System.out.println("Den svare til den indtastede " +md5kryp);
break;
}
i++;
}
And i system print line it out to check if the encryption "i" match the encrypted md5. it runs it though. but doesn't break it.
i is at a point 81dc9bdb52d04dc20036dbd8313ed055(that is the number 1234) and the md5kryp is all the time 81dc9bdb52d04dc20036dbd8313ed055. so it does match but it runs though it and doesn't stop. so the break line doesn't work