Dev-san

Untitled

Oct 22nd, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.12 KB | None | 0 0
  1.         String ime = "Jovan", prezime = "Jovanov";
  2.         String tel[] = {"070/111-222", "071/333-444"};
  3.         int vozrast = 19, indeks = 101010;
  4.         String grad = "Skopje";
  5.         String mail[] = {"[email protected]", "[email protected]", "[email protected]"};
  6.         String str =
  7.                 "{" + navodnici("ime")  + ":" + navodnici(ime)      + ", "
  8.                 + navodnici("prezime")  + ":" + navodnici(prezime)  + ", "
  9.                 + navodnici("vozrast")  + ":" + Integer.toString(vozrast)   + ", "
  10.                 + navodnici("grad")     + ":" + navodnici(grad)     + ", "
  11.                 + navodnici("indeks")   + ":" + Integer.toString(indeks)    + ", "
  12.                 + navodnici("telefonskiKontakti") + ":["
  13.                 ;
  14.         for (int i = 0; i < tel.length; i++)
  15.         {
  16.             str += navodnici(tel[i]);
  17.             if (i < tel.length-1)
  18.                 str += ", ";
  19.         }
  20.         str += "], " + navodnici("emailKontakti") + ":[";
  21.         for (int i = 0; i < mail.length; i++)
  22.         {
  23.             str += navodnici(mail[i]);
  24.             if (i < mail.length-1)
  25.                 str += ", ";
  26.         }
  27.         str += "]}";
  28.         System.out.println(str);
Advertisement
Add Comment
Please, Sign In to add comment