voucher.java
Never
package mod4; import java.text.*; import java.util.*; public class Voucher { private String[] code = {"PICHACHU", "SYARIF_HERMA"}; private Calendar kalender = Calendar.getInstance(); float[] discount = {0.5F, 0.15F}; float getdiscount(String code1) { kalender.set(2022, 03, 12); Date expired1 = kalender.getTime(); kalender.set(2023, 07, 12); Date expired2 = kalender.getTime(); Date[] validityPeriod = {expired1, expired2}; SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy"); Date sekarang = new Date(); for (int i = 0; i < code.length; i++) { if (Objects.equals(code1, code[i])) { boolean perbandingan = validityPeriod[i].before(sekarang); if (!perbandingan) { System.out.println("Kode voucher berhasil dipakai. Berhasil mendapatkan diskon sebesar: " + (discount[i] * 100) + "%"); return discount[i]; } else { String strDate = df.format(validityPeriod[i]); System.out.println("Kode voucher expired. Expired pada tanggal " + strDate + ". Gagal mendapatkan diskon."); return 0; } } } System.out.println("Kode voucher salah."); return 0; } }
Raw Text
-
Threesome at the Hair Salon - Cuckold Boyfriend Picks Her Up (English Subtitles) - DivinaMaruuu
11 min ago
-
Untitled
28 min ago
-
Untitled
38 min ago
-
Stepbro, Please Don't Cum Inside Me This Time
43 min ago
-
nbuergbheuirybgheirg
50 min ago
-
Untitled
1 hour ago
-
Cuckold licks pussy of his whore girlfriend and eats lover cum
1 hour ago
-
my friend gave me a present
1 hour ago
-
Fucking the boss's wife at a party to orgasm. She moans with pleasure and takes cum in her mout
2 hours ago
-
https://go90-keto-gummies-get.company.site/
2 hours ago