lab1
This commit is contained in:
9
DataLabs/lab1/demoSwap.java
Normal file
9
DataLabs/lab1/demoSwap.java
Normal file
@ -0,0 +1,9 @@
|
||||
public class demoSwap{
|
||||
|
||||
public static void main(String[] main) {
|
||||
Integer[] intArray = {1, 2, 3, 4, 5};
|
||||
swap.swap(intArray, 1, 3);
|
||||
System.out.print("New array: ");
|
||||
swap.printArray(intArray);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user