java - String cannot be converted to char, how to fix it? -
this solution :
public class newmain { public static void main(string args[]) throws parseexception { scanner s = new scanner(system.in); char yes; { system.out.println("hi"); yes = s.next().charat(0); } while (yes == 'y'); // if u enter 'y' continue } }
to exit enter thing other 'y'
Comments
Post a Comment