mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-26 14:42:23 -05:00
Make JavaGood compile-able and improve java_bad_1.java
This commit is contained in:
parent
a6bdf858f2
commit
ef62a7081c
2 changed files with 3 additions and 9 deletions
|
@ -1,7 +1,3 @@
|
|||
package com.superlinter.JavaGood;
|
||||
/* This is a simple Java program.
|
||||
FileName : "HelloWorld.java" */
|
||||
|
||||
/**
|
||||
* Represents a good Java file.
|
||||
*/
|
|
@ -1,11 +1,9 @@
|
|||
/* This is a simple Java program.
|
||||
FileName : "HelloWorld.java". */
|
||||
class HelloWorld
|
||||
class java_bad_1 // first letter of classname is not capitalized
|
||||
{
|
||||
// Your program begins with a call to main().
|
||||
// Prints "Hello, World" to the terminal window.
|
||||
|
||||
public static void main(String args[])
|
||||
{
|
||||
|
||||
System.out.println("Hello, World)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue