daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int[] myArrays = getIntegers(number);
  2.  
  3. //***********************************************
  4.  
  5. public static int[] getIntegers(int number){
  6. System.out.println("Enter "+ number + " integer values.\r");
  7. int[] value = new int[number];
  8. for (int i=0; i<value.length; i++){
  9. value[i]= scanner.nextInt();
  10. scanner.nextLine();
  11. }
  12. return value;
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top