• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ways Of Getting input in JAVA 6 ?

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic