Go Back   Java Programming Forums > Java Standard Edition Programming Help > File I/O & Other I/O Streams

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2010, 09:43 PM
Junior Member
 

Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
bChEos is on a distinguished road
Default Trouble writing some code...help?

How do I initiate a scanner?




Last edited by bChEos; 07-02-2010 at 10:00 PM.
Reply With Quote Share this thread on Facebook
Sponsored Links
  #2 (permalink)  
Old 08-02-2010, 01:54 AM
helloworld922's Avatar
Super Moderator
 

Join Date: Jun 2009
Posts: 827
Thanks: 5
Thanked 186 Times in 171 Posts
helloworld922 will become famous soon enoughhelloworld922 will become famous soon enoughhelloworld922 will become famous soon enough
Default Re: Trouble writing some code...help?

You must create a new Scanner (or use some method to create one for you).

Here's a basic scanner on the console input:

Java Code
Scanner reader = new Scanner(System.in);
__________________
ASCII a question .. Get an ANSI
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help writing some Scanner code bChEos File I/O & Other I/O Streams 4 03-02-2010 09:27 AM
Writing Output To New File Scottj996 File I/O & Other I/O Streams 1 07-01-2010 12:25 AM
Writing applications for the iPod Touch JavaPF Mobile Applications 5 13-12-2009 12:57 PM
Writing clone() method for LinkedList vluong Collections and Generics 6 27-10-2009 01:41 PM
I need help writing this program kev2000 Algorithms & Recursion 5 04-06-2009 08:14 AM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java actionlistener java actionlistener jbutton addactionlistener addactionlistener java avatar hardware id convert double to integer java double format java double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java hardware id avatar java 2 dimensional arraylist java 2d arraylist java actionlistener java addactionlistener java button actionlistener java convert double to int java double format java double to int java double to integer java for beginner eclippse java format double java forum java forums java get mouse position java ipod touch java jbutton java list to map java mouse position java programming forum java programming forums java sendkeys java.lang.reflect.invocationtargetexception java.util.arraylist jbutton actionlistener jbutton java programming forums string to int java two dimensional arraylist java writing apps for ipod touch

All times are GMT. The time now is 01:00 PM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.