Guest User

taulukko

a guest
Mar 14th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1.  
  2. class Taulukko
  3. {
  4.     public static void main(String[] args)
  5.     {
  6.         int[] taulukko = {1,2,3,4,5};
  7.  
  8.         for (int i=0; i<taulukko.length; i++)
  9.         {
  10.             System.out.print(taulukko[i]);
  11.             if (i != (taulukko.length-1))
  12.             {
  13.                 System.out.print(",");
  14.             }
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment