Search:

Type: Posts; User: Dingles

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,413

    Re: Java Program with text file - Help!

    If I open the file with a text editor it seems to be a space in between each number. If it was not a space would i just have to change the split(" ") to whatever the character is?
  2. Replies
    9
    Views
    1,413

    Re: Java Program with text file - Help!

    It is a space in between each number.
  3. Replies
    9
    Views
    1,413

    Re: Java Program with text file - Help!

    import java.io.*;
    import java.util.*;

    public class readFile {
    static Scanner infile = null;

    public static void main(String[] args) throws IOException {

    infile = new Scanner(new...
  4. Replies
    9
    Views
    1,413

    Re: Java Program with text file - Help!

    Ahhh so I need to use an array to split up the data in the txt file. Is there a specific spot in the code where the array needs to go?
  5. Replies
    9
    Views
    1,413

    Java Program with text file - Help!

    I've been given a coding problem that I'm having trouble with. I've been given the code below along with a text file. The text file contains the folowing:

    Chen Ruolin...
Results 1 to 5 of 5