Assignemnt #6, CommentsAndSlashes

Code

    //Name: Carlos Sosa
//Date: 9/11/15
// I thought that the two slashes made everything after them a comment
public class CommentsAndSlashes
{
    public static void main( String[] args )
    {
        // A comment, so you can read your program later.
        // Anything after the // is ignored ny Java.
        
        System.out.println( "I could have code like this." ); // and the comment after is ignored
        
        // You can also usa a comment to "disable" or comment out a peice of code:
        // System.out.println( "This won't run.");
        
        System.out.println( "This will run." );
    }
}

    

Picture of the output

Assignment 1