Ho do i specify the entered string to be between 30 and 60 characters?I tried the following but i get illegal start of expression error at (if) line.
public class Manipulation {
public static void main(String[] args) {
// let the user enter a string
OOPHelper.print("Please enter a string: ");
String s = OOPHelper.readKeyboardString();
if (s.length >=30) && (s.length <=60){
OOPHelper.println(s);
}
else