Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

String/String Tokenizer/ File Input

Jon
Jon 


Please see attached Attachments Tags Clarifications

Answers

String Tokenizer_file input

felo
felo 



find attached Attachments
HW3.rar (8 K) Download








Preview
Alice,44,79,85,72,77,57

Preview
taken from user input courseId = courseInfoInput.substring(0, firstCommaIndex); //print position of first comma, course id, and length of course id to console System.out.println("Position of the first comma: " + firstCommaIndex); System.out.println("Course ID: " + courseId); System.out.println("Length of Course ID: " + courseId.length()); //declare variable containing index of second

Preview
Bob,79,94,70,71,71,51

Preview
cs520.hw3.part2; public class Student { //Declare private instance variables for Student object private String name; private int homework1, homework2, homework3, homework4, homework5, homework6; //Constructor with name parameter public Student(String name){ this.name = name; } //Set or mutation methods for the homework grades public void setHomework1(int homework1){ this.homework1 =

Preview
program runs and file reader String inputFileName = "data.txt"; FileReader fileReader = null; //try block attempts to define the file reader try { fileReader = new FileReader(inputFileName); } //catch block in the event that the file is not found catch (FileNotFoundException e){ e.printStackTrace(); } //buffered

running program.png (107 K) Download Preview

Screenshots
Screenshot
Purchase Answer

Mr.

felo
felo 



1 Attachments
Screenshots
Purchase Answer