Twitter Facebook Delicious Digg Stumbleupon Favorites More

10/05/17

Array Multidimensi Java Eclipse

Membuat Array Multidimensi Java Eclipse


tentangit.com_eclips

Array multi dimensi merupakan perkembangan dari array 1 dimensi , array multi dimensi menyimpan sekumpulan data memiliki tipe sama dan elemen yang akan di akses melalui banyak indeks atau subskrip, array dua dimensi sama dengan aray multi dimensi..

Alat tempur  :


1. Software Eclipse di SINI
2. Software Java runtime SINI
3. Software JDK DISINI

Berikut contoh script  :

###########################################################
package com.tugas.main;

public class ArrayMultidimensi {

 public static void main(String[] args) {
  // TODO Auto-generated method stub

  String[][] nama = {
    {"Amerika","Inggris","Prancis","Indonesia","Iran","Irak","Jepang"},
    {"Washington","Jakarta","Tokyo","Paris","Teheran","Bagdad","London"},
    {" Ibu Kota "}

   };

  System.out.println( nama[0][3] +nama [2][0] +nama[1][1]);
  System.out.println( nama[0][6] +nama [2][0] +nama[1][2]);
  System.out.println( nama[0][4] +nama [2][0] +nama[1][4]);
  System.out.println( nama[0][2] +nama [2][0] +nama[1][3]);
  System.out.println( nama[0][0] +nama [2][0] +nama[1][0]);
  System.out.println( nama[0][1] +nama [2][0] +nama[1][6]);
 }

}
#######################################################

Video tutorial :



Share:

0 comments:

Posting Komentar

Cari Di Blog Ini

Menerima Jasa

Iklan

Diberdayakan oleh Blogger.
Like us on Facebook
Follow us on Twitter
Recommend us on Google Plus
Subscribe me on RSS

TentangIT

Copyright © Tentang IT | Powered by Blogger
Design by SimpleWpThemes | Blogger Theme by NewBloggerThemes.com & Distributed By Protemplateslab