void main(String[] args){
String courseId, courseName, tuition;
try {
//Prompt user to enter course info with JOptionPane
String courseInfoInput = JOptionPane.showInputDialog("Enter Course ID, Course Name, and Tuition"
+ " in the format 'CourseId,CourseName,Tuition").trim();
//Prints user input to console
System.out.println(courseInfoInput);
//get index of first comma in
this.homework6 = homework6;
}
//get methods just for good programming style but not used in this assignment
public int getHomework1(){
return homework1;
}
public int getHomework2(){
return homework2;
}
public int getHomework3(){
return homework3;
}
public int getHomework4(){
return homework4;
}
public int getHomework5(){
return
java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.StringTokenizer;
public class Test {
public static void main(String[] args){
//declare file name to find data.txt when program runs and file reader
String inputFileName = "data.txt";
FileReader fileReader = null;
//try block attempts to define the file reader
try {
fileReader =