Pretty basic substring error
in
Programming Questions
•
1 year ago
I can see that im making a really basic mistake here, but i cant see which :(
Thanks for quick replies :)
At the end it should return it has worked
- String s="where am i?";
- if(s.substring(0,5)=="where")
- {println("it has worked");}
- else{println("it hasnt worked");}
1