Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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 mainmenu;
- /**
- *
- * @author Rae
- */
- public class Lingkaran {
- double phi = 3.14;
- double jari, luas;
- public void setJari(double r) {
- jari = r;
- }
- public void setLuas() {
- luas = phi * jari * jari;
- }
- public double getLuas()
- {
- return luas;
- }
- }
Advertisement
Advertisement