From b098e04cdc50a37d694bb3c93f9c5773ac0765dd Mon Sep 17 00:00:00 2001 From: Divlo Date: Fri, 25 Jun 2021 11:27:23 +0200 Subject: [PATCH] style: fix editorconfig linting --- .gitignore | 2 ++ .../hello-world/solutions/java/function/Solution.java | 8 ++++---- templates/solution/java/Solution.java | 8 ++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index f049c22..a35065d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ npm-debug.log* # production build __pycache__ +obj +bin # testing coverage diff --git a/challenges/hello-world/solutions/java/function/Solution.java b/challenges/hello-world/solutions/java/function/Solution.java index bede282..efb283f 100644 --- a/challenges/hello-world/solutions/java/function/Solution.java +++ b/challenges/hello-world/solutions/java/function/Solution.java @@ -3,10 +3,10 @@ import java.util.Scanner; public class Solution { public static void main(String[] args) { String line; - Scanner scanner = new Scanner(System.in); - while(scanner.hasNextLine()) { - line = scanner.nextLine(); + Scanner scanner = new Scanner(System.in); + while(scanner.hasNextLine()) { + line = scanner.nextLine(); System.out.println("Hello, " + line + "!"); - } + } } } diff --git a/templates/solution/java/Solution.java b/templates/solution/java/Solution.java index bede282..efb283f 100644 --- a/templates/solution/java/Solution.java +++ b/templates/solution/java/Solution.java @@ -3,10 +3,10 @@ import java.util.Scanner; public class Solution { public static void main(String[] args) { String line; - Scanner scanner = new Scanner(System.in); - while(scanner.hasNextLine()) { - line = scanner.nextLine(); + Scanner scanner = new Scanner(System.in); + while(scanner.hasNextLine()) { + line = scanner.nextLine(); System.out.println("Hello, " + line + "!"); - } + } } }