Assignemnt #15: Using Variables

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: UsingVariables
    /// File Name: UsingVariables.java
    /// Date Finished: 9/21/2015
    
public class UsingVariables
{
    public static void main( String[] args)
    {
        int xx;
        double yy;
        String zz;
        
        xx = 113;
        yy = 2.71828;
        zz = "Computer Science";
        
        System.out.println( "my favorite integer is " + xx);
        System.out.println("look at this number " + yy);
        System.out.println("My favorite class is " + zz);
    }
}

    

Picture of the output

Assignment 15