Make JavaGood compile-able and improve java_bad_1.java

This commit is contained in:
Ishan Goel 2020-08-06 13:13:46 +04:00
parent a6bdf858f2
commit ef62a7081c
2 changed files with 3 additions and 9 deletions

View file

@ -1,7 +1,3 @@
package com.superlinter.JavaGood;
/* This is a simple Java program.
FileName : "HelloWorld.java" */
/** /**
* Represents a good Java file. * Represents a good Java file.
*/ */

View file

@ -1,11 +1,9 @@
/* This is a simple Java program. class java_bad_1 // first letter of classname is not capitalized
FileName : "HelloWorld.java". */
class HelloWorld
{ {
// Your program begins with a call to main().
// Prints "Hello, World" to the terminal window.
public static void main(String args[]) public static void main(String args[])
{ {
System.out.println("Hello, World) System.out.println("Hello, World)
} }
} }