4

Assignment #6 and CommentsAndSlashes

Code

    /// Name: Tim Gibson
    /// Period: 6
    ///Project Name: Comments and Slashes
    ///File Name: CommentsAndSlashes.java
    ///Date Finished: 9/8/15
    
    //Tim Gibson 9/8/15
    //I was right, because I thought the slashes made it a comment.
    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." );
            
            // 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

Assignment6