Assignment #6
Code
/// Name: Ian Stanko
/// Period: 5
/// Program Name: GoodSecondProgram
/// File Name: GoodSecondProgram.java
/// Date Finished: 9/10/2015
// Ian Stanko 9-10-15
// the two slashes are used to leave intructions or clues to your code that java won't read
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