This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| public class BangunBintang { | |
| static Scanner sc = new Scanner(System.in); | |
| static void showMenu(){ | |
| int optionMenu = 0; | |
| System.out.println(); |
NewerOlder