java - EasyReader won't see after space -


the ouput needs be

 john doe  john doe  john doe  (will keep on looping x amount of times) 

but easyreader doesn't see after space in user input, output always. , no, in assignment, can use easyreader, not scanner!

 john  john  john   (...) 

here's code. else works

 class starter {         public static void main(string args[]){         easyreader enter;          system.out.print("full name: ");         enter = new easyreader();         string name = enter.readword();          system.out.print("how wanna see it? ");         enter = new easyreader();         int times = enter.readint();          for(int x = 0; x < times; x++){         system.out.println(name);            }     } 

}


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -