@@ -0,0 +1,1325 @@
+/**%0A * @author agaust%0A */%0A%0Apublic class Perulangan %7B%0A    public static void main(String%5B%5D args) %7B%0A%09//1. binary string%0A%09String binaryString1 = %221010%22;%0A        System.out.println(binaryString1 + %22 Output decimalnya adalah: %22+Integer.parseInt(binaryString1,2));%0A%0A        %0A        //2. ini binary to decimal dengan integer method%0A        int decimal = 0;%0A        int p = 0;%0A        int bin = 1010;%0A        %0A        while(true)%7B%0A          if(bin == 0)%7B%0A            break;%0A          %7D else %7B%0A              int temp = bin%2510;%0A              decimal += temp*Math.pow(2, p);%0A              bin = bin/10;%0A              p++;%0A           %7D%0A        %7D%0A        System.out.println(%221010  --%3E Decimalnya adalah: %22 + decimal);%0A%0A%0A        //3. do while%0A        System.out.println(%22------ Do While --------%22);%0A        int a = 0;%0A        do %7B%0A            System.out.println(%22Perulangan ke: %22 + a);%0A            a++;%0A        %7Dwhile(a %3C 5);%0A        %0A%0A        //4. while  %0A        System.out.println(%22------ While --------%22);        %0A        int count = 1;%0A        while (count %3C 5) %7B%0A            System.out.println(%22Perulangan ke: %22 + count);%0A            count++;%0A        %7D%0A%0A        //5. for%0A        System.out.println(%22------ For --------%22);%0A        for(int i=0 ; i %3C 5 ; i++) %7B%0A            System.out.println(%22Perulangan ke: %22 + i);%0A        %7D%0A    %7D%0A%7D%0A

Create looping.java