Assignemnt #6 and Comments and Slashes

Code

/// Name: Tristan Chung
/// Period: 5
/// Program Name: Comments and Slashes
/// File Name: CommentsAndSlash.java
/// Date Finished: 9/4/2015

//Tristan Chung September 4,2015
//I was right that the "//" signified a comment and would be ignored when read by java.
public class CommentsAndSlashes
{
    public static void main( String[] args )
    {
        // A comment, this is so you can read your program later.
        // Anything after the // is ignored by Java.

        System.out.println( "I could have code like this." ); // and the comment after is ignored.

        // You can also use a comment to "disable" or comment out a piece of code:
        // System.out.println("This won't run.");

        System.out.println( "This will run." );
    }
}
    

Picture of the output

Assignment 6