Code
/// Name: Afaf Nabeeha
/// Period: 7
/// Program Name: Using Variables
/// File Name: UsingVars.java
/// Date Finished: 9/22/2015 public class UsingVars
public class UsingVars
{
public static void main( String[] args )
{
String myClass;
int myRoom;
double eValue;
myRoom = 113;
eValue = 2.71828;
myClass = "Computer Science";
System.out.println( "This is room # " + myRoom + "." );
System.out.println( "e is close to " + eValue + "." );
System.out.println( "I am learning a bit about " + myClass + "." );
}
}
Picture of the output