Skip to content

Instantly share code, notes, and snippets.

View jboxx's full-sized avatar
🇮🇩
Shut up! I am PRO

Rifqi Fardi Pradhana jboxx

🇮🇩
Shut up! I am PRO
View GitHub Profile
@jboxx
jboxx / SortingMahasiswa.java
Last active November 7, 2016 04:48
My college homework week 9
import java.util.*;
import java.io.*;
import java.text.*;
public class SortingMahasiswa {
static BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
static Mahasiswa[] arrayMahasiswa;
static String formatContentArray = "%-5d %-15s %-15s %s%n";
@jboxx
jboxx / BlissToko.java
Last active October 30, 2016 20:39
My college assignment week 8
import java.util.*;
import java.io.*;
import java.text.*;
import java.math.BigDecimal;
public class BlissToko {
static BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
static Vector<Cake> dataCake = new Vector<>();
@jboxx
jboxx / Travelola.java
Last active November 7, 2016 04:47
My college homework
import java.util.*;
public class Travelola {
public static String format(double amount){
String amountOnString = "Rp. " + String.format("%1$,.0f", amount);
amountOnString = amountOnString.replaceAll(",",".");
return amountOnString;
}
@jboxx
jboxx / Depositos.java
Created October 23, 2016 09:28
My college homework
import java.util.*;
import java.text.DecimalFormat;
public class Depositos {
static Scanner sc = new Scanner(System.in);
static String doDeposite = "";
static void onDeposite(){
double amountDeposite;
@jboxx
jboxx / DataArrayDosen.java
Last active October 23, 2016 09:30
My college homework
import java.util.*;
public class DataArrayDosen {
/*
* I dont know why we must use static array for storing data object ?
* the exercise to use static array is not for storing object value
* It's so much pain if used static array for it. u must initiate the array size first so that u can add all data
* The implementation static array on java is not much, not much than C
*/
@jboxx
jboxx / BangunBintang.java
Last active October 23, 2016 09:30
My college homework week 7
import java.util.*;
public class BangunBintang {
static Scanner sc = new Scanner(System.in);
static void showMenu(){
int optionMenu = 0;
System.out.println();