SHARE
TWEET

Inner

luqman0611 Feb 21st, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.company;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.     // write your code here
  7. Data data = new Data();
  8. data.dataTampil();
  9.  
  10.     }
  11.  
  12. }
  13.  
  14. class Data {
  15.     private int tinggi = 3;
  16.     private int lebar = 4;
  17.  
  18.     class DalamData{
  19.         void persegiPanjang(){
  20.             System.out.println(tinggi*lebar);
  21.         }
  22.     }
  23.     void dataTampil(){
  24.         DalamData dalamData = new DalamData();
  25.         dalamData.persegiPanjang();
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top