What's up?

You will need to start reading the book. 

You have to purchase the book. 

However you are not purchasing a book.

You need to purchase an account in MPL. 

Let's work out a problem:

Write program that prints this:
  
  Howdy!

Write program that prints this:

   *
   "
  """
 """""
"""""""
  | |

Write program that prints this:

+-----+
| o o |
|  <  |
| --- |
+-----+

Same with ducks, fish and whatnot.

Here's a duck: 
             _
           >(')____,
             (` =~~/
          ~^~^`---'~^~

You have two options: 

(a) silo

(b) DrJava

So we write this:

class Wednesday {
  public static void main(String x[]) {
    System.out.println( "\"" ); 
  }
}

We compile and run it:

Welcome to DrJava.  Working directory is C:\Users\dgerman\Desktop
> run Wednesday
"


Let's work out a second program:

> javac Connor.java
> java Connor
How many gallons in your car's tank (gallons): 16
What's the efficiency of your car (miles/gallon): 20
What's the price for a gallon of gas at the pump: 1.8
Thanks. 
Your car's autonomy at this moment is: 320 miles.
Driving your car costs $9.0 for each 100 miles. 
Bye now. 

Thanks to Ben and Michael as well. 

Next we wrote this: 

import java.util.*; 

class Example {
  public static void main(String[] args) {
    System.out.print("What's your name? "); 
    String name;
    Scanner in = new Scanner(System.in); 
    name = in.nextLine(); 
    System.out.println("How old are you " + name + "?"); 
  }
}

This runs as follows: 

Welcome to DrJava.  Working directory is C:\Users\dgerman\Desktop
> run Example
What's your name?  [DrJava Input Box, you type: Laura]
How old are you Laura?


See you in lab. 

--