Search:

Type: Posts; User: orbin

Search: Search took 0.07 seconds.

  1. Re: Having trouble splitting a text file into multiple arrays.

    Yes, I have done that...but it keeps telling me it cannot find the symbol with red lining under Arrays. (I'm using Netbeans btw.) Sorry for being confusing. Trying my best to figure out these...
  2. Re: Having trouble splitting a text file into multiple arrays.

    Ah, okay, However, when I used that line it marked Arrays as red and could not find the symbol.
  3. Re: Having trouble splitting a text file into multiple arrays.

    import java.io.*;

    public class Program2 {

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

    File dataFile = new File("G:\\COSC 1337\\Handouts 6-14\\Student Data.txt");...
  4. Re: Having trouble splitting a text file into multiple arrays.

    I printed out the String str and it of course prints the first four correct grades that should be read in. It prints out "97 86 78 95", which it should. Everything seems to go wrong when I do the...
  5. Re: Having trouble splitting a text file into multiple arrays.

    import java.io.*;

    public class Program2 {

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

    File dataFile = new File("G:\\COSC 1337\\Handouts 6-14\\Student Data.txt");...
  6. Re: Having trouble splitting a text file into multiple arrays.

    Step 2 is what I'm having trouble with. I understand that once I do the command str.split(" "); it splits the numbers into seperate entities which I do placeHolder = str.split(" ");, but when I do a...
  7. Re: Having trouble splitting a text file into multiple arrays.

    I'm having trouble breaking the 4 sets of numbers apart so that I can parse them into ints.




    import java.io.*;

    public class Program2 {

    public static void main(String[] args) throws...
  8. Re: Having trouble splitting a text file into multiple arrays.

    I was going to use what he stated above. I've used the split method, but was going to create a integer array and just hold all the grades in each of their elements. Then when it comes to calculating...
  9. Re: Having trouble splitting a text file into multiple arrays.

    It's not very clear in the assignment but it's listed below. I assume I have to save each set of 4 grades into it's own little box, and calculate an avg from that...but it seems very difficult. We've...
  10. Having trouble splitting a text file into multiple arrays.

    Hey all, working on trying to read in a text file so that I can split it into multiple arrays. Text file looks like this




    Amy Adams
    10111
    97 86 78 95
    Ben Barr
    20222
Results 1 to 10 of 10