CS10, 09S, UCSB
H13: (Based on Horstman, Chapter 11, I/O and Exceptions) Total points: ? (printable PDF)
Accepted: on paper, in lecture (1-1:50pm) on Wednesday, May 13th only.
No email submission allowed.
Name: (2 pts)______________________________ UCSBNetID (2 pts) _____________________
Section (6 pts) Circle one: Thu 4pm Fri 10am Fri 11am Fri noon
System.out.println("Hello, World!");
Let's take it to the next level. In the class below, after the Hello, World line, add three lines of code that will result in the message "Hello, Hard Drive!" being written into a file called "message.txt" in the current directory. Also note that you'll have to add something after the closing ) and before the opening { of the main method—I've left extra room for you to do that./**
Standard example
*/
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
Please turn over for more problems
public QuadraticEqn(double a, double b, double c)
{
this.a = a;
this.b = b;
this.c = c;
}