Skip to content

Commit cdc1cd8

Browse files
Update swap2.java
1 parent 5a23823 commit cdc1cd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Basic Codes/swap2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void swap(int x, int y)
1919
}
2020
System.out.println("After swap \n"+"x= "+x+"\ny= "+y);
2121
}
22-
public static void main()throws IOException
22+
public static void main(String args[])throws IOException
2323
{
2424
InputStreamReader inp=new InputStreamReader(System.in);
2525
BufferedReader br=new BufferedReader(inp);
@@ -29,4 +29,4 @@ public static void main()throws IOException
2929
swap2 obj=new swap2();
3030
obj.swap(x,y);
3131
}
32-
}
32+
}

0 commit comments

Comments
 (0)