If you want to write to a new file every time, use the File class's exists()method to determine if there already is a file with the currently chosen name. If there is a file, change the name and...
Type: Posts; User: Norm
If you want to write to a new file every time, use the File class's exists()method to determine if there already is a file with the currently chosen name. If there is a file, change the name and...
For example to use arrays:
String[] q = new String[10];
TheAnswerType[] answers = new TheAnswerType[10];
A new file would be created by generating a new filename before each file is opened.
Do you know about arrays? This code needs to be rewritten using arrays.
Also when posting code, Please wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve...