jam/FillArrayWith2

From ggc

Jump to: navigation, search

Compiled in 0.063 seconds.

01 package jam;
02 
03 import wiki.Wiki;
04 /**
05  * All about my application here.
06  @author Jam Jenkins
07  */
08 public class FillArrayWith2
09 {
10    public static void main(String[] args)
11    {
12       int[] numbers;
13       numbers=new int[9];
14       for(int i=0; i<numbers.length; i++)
15       {
16          numbers[i]=2;
17       }
18 
19       for(int single: numbers)
20       {
21          Wiki.out.println(single);
22       }
23    }
24 }


Download/View jam/FillArrayWith2.java




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter