Skip to content

Commit b770ae8

Browse files
committed
Fix Groovy warnings
1 parent 21b0947 commit b770ae8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datetime.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import java.time.format.DateTimeFormatter
77
import java.util.InputMismatchException
88
import java.util.Scanner
99

10-
public class datetime {
10+
class datetime {
1111

12-
public static void main(String[] args) {
12+
static void main(String[] args) {
1313
try (Scanner sc = new Scanner(System.in)) {
1414
int year, month, day, hour, minute, second, millisecond, microsecond, nanosecond//initialize date and time variables
1515
DateTimeFormatter era1 = DateTimeFormatter.ofPattern('GGG') // Format the date and time values with a specified pattern for all supported formats

0 commit comments

Comments
 (0)