Set Array

how to create arrays from public declarations

public class NewJFrame extends javax.swing.JFrame {

    private static String[][][] dimensitiga;

    public NewJFrame() {

        initComponents();

    }

                   

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        

/*

        String[][][] array3D = {

                {{"KODE001","Teguh Sugiono","JAKARTA"},

                {"KODE002","Nugie","BEKASI"},

                {"KODE003","Shulhan","JAKARTA"},

                {"KODE004","Adi","JAKARTA"},

                {"KODE005","Yasin","BEKASI"},

                {"KODE006","M.Donny","TANGGERANG"},

                {"KODE007","Fadil","BEKASI"}} 

        };*/

dimensitiga = {

                {{"KODE001","Teguh Sugiono","JAKARTA"},

                {"KODE002","Nugie","BEKASI"},

                {"KODE003","Shulhan","JAKARTA"},

                {"KODE004","Adi","JAKARTA"},

                {"KODE005","Yasin","BEKASI"},

                {"KODE006","M.Donny","TANGGERANG"},

                {"KODE007","Fadil","BEKASI"}} 

        };

       

    }

}...

Read More »

By: coderanchjavageneral - Thursday, 8 November

Related Posts