Question: True or false: 1. You cannot store user-defined objects into an ArrayList. 2. Example syntax for opening a file for reading is: BufferedReader in =

True or false:

1. You cannot store user-defined objects into an ArrayList.

2. Example syntax for opening a file for reading is: BufferedReader in = new BufferedReader(new FileReader("stars.txt"));

3. FileWriter allows you to append to a file.

4. The setText() method can be used to set the value of a jTextField.

5. The isSelected() method can be used to determine if a jRadioButton has been selected.

6. A Swing application uses GUI components from the java.swing package.

7. To write out a platform independent line separator to a file, you could write out the String that is returned from System.getProperty (line.separator).

8. You could use the printf() method to write formatted output to a file if you use PrintWriter.

9. You could use the hasNext() method on the Scanner class to see if you had more data to read in.

10. You could use the value returned from the getText() method on the jTextField class in a mathematical operation without first converting to a numeric type.

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!