diff --git a/transliteraion/src/main/java/transliteraion/Main.java b/transliteraion/src/main/java/transliteraion/Main.java index 1308e47..95e650b 100644 --- a/transliteraion/src/main/java/transliteraion/Main.java +++ b/transliteraion/src/main/java/transliteraion/Main.java @@ -15,8 +15,8 @@ private Main() { * Main method in program. * * @param args input args:
- * first - name
- * second - last name + * first - last name
+ * second - name */ public static void main(final String[] args) { @@ -25,8 +25,8 @@ public static void main(final String[] args) { return; } - String name = args[0]; - String lastname = args[1]; + String name = args[1]; + String lastname = args[0]; String result = Transliteration.convert(name, lastname); diff --git a/transliteraion/src/main/java/transliteraion/Transliteration.java b/transliteraion/src/main/java/transliteraion/Transliteration.java index 7bad8c8..e3fbf1c 100644 --- a/transliteraion/src/main/java/transliteraion/Transliteration.java +++ b/transliteraion/src/main/java/transliteraion/Transliteration.java @@ -66,7 +66,6 @@ private static void readFile() { try (FileReader fr = new FileReader(file); BufferedReader br = new BufferedReader(fr)) { - String line = br.readLine(); while (line != null) {