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...
Type: Posts; User: orbin
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...
Ah, okay, However, when I used that line it marked Arrays as red and could not find the symbol.
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");...
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...
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");...
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...
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...
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...
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...
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