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 / 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();
@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 / 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 / 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 / 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 / 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 / MainScript.java
Last active November 14, 2016 03:32
My college assignment week 10. OOP example
interface DataInfo{
public void showInfo();
}
abstract class Siswa implements DataInfo{
private String nama;
private int nilai;
public Siswa(String nama, int nilai){
this.nama = nama;
@jboxx
jboxx / .eslintrc
Last active December 19, 2017 12:30 — forked from radiovisual/.eslintrc
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
@jboxx
jboxx / stetho.gradle
Last active September 29, 2018 19:04
gradle stetho
dependencies {
implementation 'com.facebook.stetho:stetho:1.5.0'
}
@jboxx
jboxx / stetho.xml
Last active September 29, 2018 17:55
maven-stetho
<dependency>
<groupid>com.facebook.stetho</groupid>
<artifactid>stetho</artifactid>
<version>1.5.0</version>
</dependency>