Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Revision1 {
- public static void main(String[] args)
- {
- /*
- int myNum = 5; // Integer (whole number)
- float myFloatNum = 5.99f; // Floating point number
- char myLetter = 'D'; // Character
- boolean myBool = true; // Boolean
- String myText = "Hello"; // String
- */
- Scanner kb = new Scanner(System.in);
- int input = Integer.parseInt(kb.nextLine());
- int[] numArray = new int[input];
- int N;
- System.out.println("how many values would you like?");
- N = kb.nextInt();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement