0
why if else is not working here public String theEnd(String str,boolean front) { if(front=true) return str.substring (0,1); else return str.substring (str.length()-1,str.length()); }
2 Réponses
+ 6
= is the assignment operator, you probably want to use == to check for equality instead.
+ 1
You are setting the variable front equal to true.