Click to See Complete Forum and Search --> : JAva help


benzspida
06-13-2006, 07:19 PM
can any one help I am trying to create a JAVA comments useing the same statement three times to demonstrate each of the three methods of commenting in java

this is what i have done so far


//Demonstrating comments
// Written by <>
// Written on <>

public class Hello
{
/*Program comments are nonexecuting statements your
add to a program for the purpose of documentation */

System.out.print1n("Hello");//Program comments are nonexecuting statements your
// add to a program for the purpose of documentation
/**Program comments are nonexecuting statements your
add to a program for the purpose of documentation. */
{
public static void main(string[] args)
{
system.out.print1n("Hello,world");
}
}

chazzy
06-13-2006, 07:52 PM
well for one, there is no "system.out.print1n" and "System.out.print1n" and you can't have a print statement in the middle of a class like that.

but otherwise it's good.