Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Revision1 {
  4.  
  5. public static void main(String[] args)
  6. {
  7. /*
  8. int myNum = 5; // Integer (whole number)
  9. float myFloatNum = 5.99f; // Floating point number
  10. char myLetter = 'D'; // Character
  11. boolean myBool = true; // Boolean
  12. String myText = "Hello"; // String
  13. */
  14. Scanner kb = new Scanner(System.in);
  15. int input = Integer.parseInt(kb.nextLine());
  16. int[] numArray = new int[input];
  17. int N;
  18. System.out.println("how many values would you like?");
  19. N = kb.nextInt();
  20.  
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement