Question: Here is the .java file. import java.io.Serializable; public class yankees implements Serializable { private static final long serialVersionUID = 7532751864233756487L; private String name; private String

 Here is the .java file. import java.io.Serializable; public class yankees implements

Here is the .java file.

import java.io.Serializable;

public class yankees implements Serializable

{

private static final long serialVersionUID = 7532751864233756487L;

private String name;

private String pos;

private int num;

public yankees(String na, String p, int nu)

{

name = na;

pos = p;

num = nu;

}

public String getname()

{

return name;

}

public String getpos()

{

return pos;

}

public int getnum()

{

return num;

}

}

If the two .yanks files are needed I can provide them just need the best option to deliver them.

yanifilejol(2) () Microsoft Word Hom ne Pge Layout References Malngs Rviw View cut Change Replace StylesSelect PasteCopy Subtrle Subtie Em.. Emphasis intense StrongQuote I Nomal TNo Spaci... Heeding Hesding 2 Clipboard Paragraph Edting YANKEES FILE You will write a program that will convert a file of objects to a plain ASC character text file yankees.txt (using plain character streams of individual characters). Copy the attached yankees yanks object input file and save into your ciss241 project folder. Copy the attached yankees java class definition file and save into your files13 package You will then create a main program that will read an entire record (an object from this yankees.yanks file), get each field separately and convert each field into a separate character stream, and write the character streams of individual characters (in a loop)to a plain ASCII outputtext file called yankees.tct (you can open it in Eclipse from your ciss241 project folder) Each field value will be a separate loop and you will only write one character at a time from each field (note: the only output to the yankees.txt file will be to write one individual plain ASC text character at a time). In the output file, put each yankees record on a separate line with a space character between each field and a new line or retum character at the end of each record Contimme reading objects until you reach the eof (at which point you will read a null, so you can read until you throw and catch an EOFException but you don't have to print anything,just exit). Include catch blocks for any kinds of exceptions that might occur (print the stack trace and exit). Input: Read yankees objects from yankees yanks in form of yankees java Output: Write individual ASCII characters from fields ofyankees objects to yankees.txt. Add a full paragraph of documentation (at least 4 lines each) to your main program Supply extra documentation (at least 5 comments) throughout for all of the not easily understandable lines of code for your main program Run your program and submit your main program and yankees.txt output file by attaching the files. Page 1 of1 Words: 322 A 622 PM

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!