Assignemnt #6 with basic printing
Code
/// Name: Sean Harrison
/// Period: 7
/// Program name: ThirdProg
/// File name: ThirdProg.java
/// Date completed: 9/8/15
// Yes, I was correct that the slashes signifies comments for a dev to read later, without it altering the code in anyway shape or form.
public class ThirdProg
{
public static void main( String[] args )
{
//A comment, this si 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