This commit is contained in:
2025-03-04 15:53:39 +03:00
parent d3ac74eb64
commit bbf73e06a4
8 changed files with 95 additions and 0 deletions

View 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);
}
}