Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Parsing
- In your example, calling Integer.parseInt on a string is parsing this string to find an integer.
- So, if you have:
- String someString = "123";
- And then you invoke:
- int i = Integer.parseInt( someString );
- You're telling java to analyze the "123" string and find an integer there.
- Arrays:
- String[] suit = { "Clubs", "Diamonds", "Hearts", "Spades" };
- String[] rank = { "2", "3", "4", "5", "6", "7", "8", "9", "10",
- "Jack", "Queen", "King", "Ace"
- }
- // declares an array of integers
- int[] anArray;
- // allocates memory for 10 integers
- anArray = new int[10];
- 2D ARRAY
- double[][] a = new double[M][N];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement