Guest User

Untitled

a guest
Jul 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class ex6_5 {
  3. public static void main(String[] args)
  4. {
  5. //creat scanner object
  6. Scanner kb = new Scanner(System.in);
  7. //create an array to hold the input numbers
  8. int [] inNum = new int [10];
  9. int [] checkNum = new int[10];
  10.  
  11. //get length of the array
  12. int arLen = inNum.length;
  13. //create a looop to get user input into the array
  14. for (int i = 0; i <= arLen; i++)
  15. {
  16. //get user input
  17. System.out.println("Please enter an Integer: ");
  18. inNum[i] = kb.nextInt();
  19. //make a copy of the array
  20. int[] newAr;
  21. newAr = i
  22. }
  23.  
  24. for (int k = 0; k <= arLen ;k++)
  25. {
  26. //compare if
  27.  
  28. }
  29. //print out the array test!
  30. System.out.println("Inside array"+inNum[k]);
  31.  
  32.  
  33. }
  34.  
  35. }
Add Comment
Please, Sign In to add comment