Assignment #6, Comments And Slashes
Code
///Name: Stella Koliavas
///Period: 5
///Project Name: Good Second Program
///File Name: CommentsAndSlashes.java
///Date: 9/8/2015
/// Stella Koliaavas 8/9/15
/// The slashes hide the writing or code on the following line so none o fit will be seen or run
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