Assignment #6: Comments and Slashes

Code

    /// Name: Kiran O'Farrell
/// Period: 7
/// Program name: First Program
/// File Name: FirstProg.java
/// Date Finished: 9/2/15

public class CommentsAndSlashes {

    public static void main(String[] args) {
    
    //A comment, so I can read my program later.
    //Anything after two forward slashes is ignored by Java.
    
    System.out.println("I could have code like this.");//and the comment after is ignored.
    
    //I can also use comments to "comment out" or disable a piece of code.
    //System.out.println("This won't run.")
    
    System.out.println("This will run.");
    
    }
}
  
Assignment 6