2
245dav
I was trying to convert String Array to String A through cycle and than compare the result with String B but eventhough results were the same it returned false.
I'am working in BlueJ 3.1.0
Code is:
public boolean Method ()
{
String[] Example = {"a","b","c"};
String A = "";
String B = "abc"
for (int i = 0; i<3 ; i++)
{
A = A + Example;
}
if (A == B)
{
return true;
}
}
never got true...
I'am working in BlueJ 3.1.0
Code is:
public boolean Method ()
{
String[] Example = {"a","b","c"};
String A = "";
String B = "abc"
for (int i = 0; i<3 ; i++)
{
A = A + Example;
}
if (A == B)
{
return true;
}
}
never got true...