SHARE
TWEET

Main

a guest Apr 22nd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Main {
  2.  
  3.     public static void main(String[] args) {
  4.         array ob = new array();
  5.  
  6.         double bilangan1[] = {-20, -3, -6, -1, -4};
  7.  
  8.         ob.setRatarata(bilangan1);
  9.         ob.setBilangan(bilangan1);
  10.         ob.tampil(ob.getBilangan());
  11.         ob.setMaks(bilangan1);
  12.         ob.setMin(bilangan1);
  13.  
  14.         System.out.println("====================");
  15.         System.out.println(" Nilai rata rata : ");
  16.         System.out.println((ob.getRatarata() / bilangan1.length));
  17.         System.out.println("maksimum : " + ob.getMaks());
  18.         System.out.println("minimum : " + ob.getMin());
  19.     }
  20. }
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