diff --git a/OOP/Java/Lab/Week9/arrange_array.java b/OOP/Java/Lab/Week9/arrange_array.java new file mode 100644 index 0000000..28c5df8 --- /dev/null +++ b/OOP/Java/Lab/Week9/arrange_array.java @@ -0,0 +1,20 @@ + +import java.util.*; + +public class arrange_array { + public static void main(String[] args) { + int n; + Scanner sc = new Scanner(System.in); + System.out.println("Enter number of strings you would like"); + n = Integer.parseInt(sc.nextLine()); + System.out.println("Enter your strings"); + String[] arr = new String[n]; + for(int i = 0;i