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?
Type: Posts; User: Dingles
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?
It is a space in between each number.
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...
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?
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...