Results 1 to 4 of 4
  1. #1
    rajshekar900 is offline Member
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default java IO program , please help

    Hi everyone this is my first post on this forum. my question is- say i have a file abc.txt with the following contents-"my name is Ron. I am from London. I work in New York." I have to write a java program using IO with hashmap in it to display the output as follows-
    Name: Ron
    Native: London
    Location: New York

    please help

    Thank you

    hey guys . i have got ouptut using other method. forget this question
    Last edited by rajshekar900; 07-29-2011 at 08:23 AM.

  2. #2
    Junky's Avatar
    Junky is online now Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    What have you done?
    What have you tried?
    What problems are you having?

    Ask a specific question, get a specific answer.

  3. #3
    Junky's Avatar
    Junky is online now Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Quote Originally Posted by rajshekar900 View Post
    I have to write a java program using IO with hashmap in it to display the output
    This sentence makes no sense. HashMaps are for storage. They have nothing to do with IO.

  4. #4
    return is offline Member
    Join Date
    Jul 2011
    Posts
    11
    Rep Power
    0

    Default

    Quote Originally Posted by Junky View Post
    This sentence makes no sense. HashMaps are for storage. They have nothing to do with IO.
    OP when you say IO do you mean reading the contents of the file?And then subsequently I think what you are trying to do is map each of the three facts from the file into a HashMap with keys "name" "natiave" and "location"? Have you tried anything yet? As Junky mentioned show us what you have tried and then ask a specific question, and that is when people can help you.
    Thanks!

Similar Threads

  1. Call one Java Program from another Java Program
    By rajpalparyani in forum New To Java
    Replies: 3
    Last Post: 02-14-2011, 04:13 AM
  2. Replies: 4
    Last Post: 07-30-2010, 12:25 PM
  3. execute java program within java program
    By popey in forum New To Java
    Replies: 2
    Last Post: 10-22-2009, 05:32 PM
  4. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  5. Replies: 0
    Last Post: 10-04-2007, 09:33 PM

Posting Permissions

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