Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testpackage;
- import java.util.Scanner;
- public class Driver
- {
- public static void main(String[] args) {
- int b[][] = { {1,2},{3,4,5}};
- System.out.println(b[0][0]);
- System.out.println(b[0][1]);
- System.out.println(b[1][0]);
- System.out.println(b[1][1]);
- System.out.println(b[1][2]);
- }
- }
- /*
- 1 2
- 3 4 5
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement