Results 1 to 4 of 4
  1. #1
    csisdifficult is offline Member
    Join Date
    Apr 2011
    Posts
    11
    Rep Power
    0

    Default Java scanner reading txt documents

    Having a little bit of trouble with my code...
    Last edited by csisdifficult; 04-21-2011 at 08:19 PM.

  2. #2
    farahm is offline Member
    Join Date
    Nov 2010
    Location
    Beirut, Lebanon
    Posts
    36
    Rep Power
    0

    Default

    i cant seem to get the question, further explanation would be appreciated.

  3. #3
    csisdifficult is offline Member
    Join Date
    Apr 2011
    Posts
    11
    Rep Power
    0

    Default

    Nevermind, I got it!
    Last edited by csisdifficult; 04-21-2011 at 08:19 PM.

  4. #4
    farahm is offline Member
    Join Date
    Nov 2010
    Location
    Beirut, Lebanon
    Posts
    36
    Rep Power
    0

    Default

    You may seem to be experiencing a couple of misconceptions for methods to return values they cannot be of type void and if in your method deceleration is an (int) as in the first method then your return type should be an int. As for the rest you should specify the return type and not declare methods of type void.
    If you explain the idea behind the program I may be able to help you.
    Last edited by farahm; 04-21-2011 at 08:31 PM.

Similar Threads

  1. Replies: 2
    Last Post: 02-23-2011, 04:20 PM
  2. download API documents
    By srinivasmallabathula in forum New To Java
    Replies: 1
    Last Post: 01-20-2011, 11:15 AM
  3. Scanner reading accented characters
    By Phenomena in forum New To Java
    Replies: 2
    Last Post: 04-29-2010, 04:06 PM
  4. Reading pattern using Scanner class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-18-2008, 12:02 PM
  5. Reading a line from console using Scanner class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-18-2008, 11:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •