Assignemnt #6
Code
/// Colin Hinton 9/8/2015
/// Name: Colin Hinton
/// Period: 5
/// Program Name: Comments and Slashes
/// File Name: CommentsAndSlashes.java
/// Date Finished: 9/8/2015
// i was right that anything said after // is ignored. Bwahhahahah
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 aslo user a comment to "disable or comment out a piece of code;
// Systen.out.println(this won't run.");
System.out.println("this will run.");
}
}
Picture of the output