dummy89 hat gesagt.:Wenn ich 2 Strings, die beide den selben Inhalt haben, in ein Byte[] mit der Methode getBytes umwandle, haben sie nicht mehr den selben Inhalt.
public class Bla {
public static void main(String[] args) {
String s = "test test test test bla bla";
String s1 = "test test test test bla bla";
System.out.println(s.equals(s1));
byte[] b = s.getBytes();
byte[] b1 = s1.getBytes();
for(int i=0 ; i < b.length ; i++){
System.out.println(i);
if(b[i] != b1[i]){
System.out.println("grrrrrr...");
}
}
}
}