Assignemnt #15
Code
/// Name: Daniel Nguyen
/// Period: 6
/// Program Name: Using Variables Program
/// File Name: UsingVariables.java
/// Date Finished: 9/15/2015
// Use different variable groups depending on what the variable is
public class UsingVariables {
public static void main( String[] args ) {
int room;
double number;
String lala;
room = 113;
number = 2.71828;
lala = "Computer Science" ;
System.out.println( "This is room # " + room );
System.out.println( "e is close to " + number );
System.out.println( "I am learning a bit about " + lala );
}
}
Picture of the output