mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -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.
|
* Represents a good Java 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue