Skip to main content

Posts

2D Class OOP

Source code terdiri dari : - Main - Circle - Rectangle - Square - Triangle - Rhombus - Parallelogram 1) Source code Main import static java.lang.Math.sqrt; import java.awt.*; /**  * Write a description of class Main here.  *  * @author Satria Ade Veda Karuniawan  * @version 09/10/2018  */ public class Main {     public static void main(String args[])     {         //Circle definition         Circle testCircle;         testCircle = new Circle();         testCircle.SetRadius(3.0);         testCircle.SetCenter(2.0,2.0);               double LuasLingkaran = testCircle.Area();         double KelilingLingkaran = testCircle.Circumference();               //Rectangle definition         Rectangle testRectangle; ...

Hello World!

Tugas 1 Source Code /**  * Write a description of class Test here.  * Program Data Diri  * @author Satria Ade Veda Karuniawan  * @version 0.1  */ public class Test {     // instance variables - replace the example below with your own         public Test()       {           String nama = "Satria Ade Veda Karuniawan";           String kelas = "PBO A";           String alamat = "Jl. Rajawali 4 no 2 Rewwin Sidoarjo";           String email = "dnaspeedmania@gmail.com";           String blog = "newsavk.blogspot.com";           String nomor = "081615522636";           String twitter = "@SatriaAdeVK2";           System.out.println("Nama          : " + nama);       ...