Search:

Type: Posts; User: copeg

Search: Search took 0.09 seconds.

  1. Re: Read a data from a text file and create an object from these data in this text fi

    I think I understand your question...consider the following


    String line = "m 25 68";
    String[] pieces = line.split(" ");
    ///pieces is an array, pieces [0] is "m", pieces [1] is "25", etc...
    ...
  2. Re: Read a data from a text file and create an object from these data in this text fi

    Really? I honestly didn't know what the question was, and was addressing your "create man obj" notes in the source code you posted - seems to me your code reads the file just fine, unless there are...
  3. Re: Read a data from a text file and create an object from these data in this text fi

    Please use the code tags (see my signature for instructions) - I've edited your post to use them.

    I'd suggest you read the following 2 links:
    1) Lesson: Classes and Objects (The Java™ Tutorials...
  4. Re: Read a data from a text file and create an object from these data in this text fi

    What have you tried?
Results 1 to 4 of 4