GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Source-Code-from-Tutorials/Java_Beginners/34_javaBeginners.java at master · SF5/Source-Code-from-Tutorials Expand file tree/ Copy path34_javaBeginners.javaMore file actions 21 lines (18 loc) · 657 Bytes / Copy path34_javaBeginners.javaFile metadata and controls21 lines (18 loc) · 657 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 public class apples { public static void main (String[] args){ int firstarray[][] = {{8,9,10,11},{12,13,14,15}}; int secondarray[][] = {{30,31,32,33},{43},{4,5,6}}; System.out.println("This is the first array"); display(firstarray); System.out.println("This is the second array"); display(secondarray); } public static void display (int x [][]){ for(int row=0;row <x.length;row++){ for(int column=0;column < x[row].length;column++){ System.out.print(x[row][column]+"\t"); } System.out.println(); } } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |