Skip to content

Commit

Permalink
swipe input arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlissoviy committed Jan 2, 2023
1 parent 73e0d47 commit 4efada0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions transliteraion/src/main/java/transliteraion/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ private Main() {
* Main method in program.
*
* @param args input args:<br>
* first - name<br>
* second - last name
* first - last name<br>
* second - name
*/
public static void main(final String[] args) {

Expand All @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4efada0

Please sign in to comment.