Teknologi 3D pada Halaman WEB
Rabu, 01 April 2020
Array 2 Java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package arr2; /** * * @author ACER */ import java.util.Arrays; public class Arr2 { public static void main(String[] args) { String[][] buah = { {"apel","belimbing"}, {"Rp. 34000","Rp. 24000"} }; System.out.println(buah[0][0]+" "+buah[1][0]); System.out.println("=============================================="); for (int i = 0; i < buah.length; i++) { for (int j = 0; j < buah[i].length; j++) { System.out.print(buah[i][j] + " "); } System.out.println(""); } } }
Tidak ada komentar:
Posting Komentar
Posting Lebih Baru
Posting Lama
Beranda
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar