fork download
  1. /**
  2. * This is the class
  3. * that is used
  4. */
  5.  
  6. class Comments
  7. {
  8. public static void main(String[]args)
  9. {
  10. //These lines output a statement
  11. System.out.println("Program comments are nonexecuting statements");
  12. System.out.println("you add to a file for documentation.");
  13. /*
  14. * This is a multi-line comment
  15. * can go for more lines than one
  16. */
  17. }
  18. }
Success #stdin #stdout 0.08s 52508KB
stdin
Standard input is empty
stdout
Program comments are nonexecuting statements
you add to a file for documentation.