• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ways Of Getting input in JAVA 6 ?  RSS feed

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting input from user by using
Scanner input = new Scanner(System.in);
tell me that how many ways are in JAVA for getting input from user ?
 
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which ones can you think of yourself, besides using Scanner? Note that most solutions use System.in, but that's not the only way to get input from the console.

I'm assuming you don't want to list the infinity ways to do this in a user interface?
 
Muzafar Ali
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Which ones can you think of yourself, besides using Scanner? Note that most solutions use System.in, but that's not the only way to get input from the console.

I'm assuming you don't want to list the infinity ways to do this in a user interface?



Thanks for your answer Rob Prime: As you say i do not want infinity ways of doing that but just want 2 or three other ways to do this , if i am using Scanner that means i can get input from user by String , int , float , double , long , char , it means that i can get input using all the data types . but i know there may be still some other ways to get input in JAVA 6 .
so please can you specify some of them for me without scanner .


Regards
Muzafar.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!