Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<Integer, String> months = new LinkedHashMap<>();
- months.put(1, "يناير");
- months.put(2, "Ùبراير");
- months.put(3, "مارس");
- months.put(4, "ابريل");
- months.put(5, "مابو");
- months.put(6, "يونيو");
- months.put(7, "يوليو");
- months.put(8, "اغسطس");
- months.put(9, "سبتمبر");
- months.put(10, "اكتوبر");
- months.put(11, "نوÙمبر");
- months.put(12, "ديسمبر");
- for (Map.Entry<Integer, String> entry : months.entrySet()) {
- int key = entry.getKey();
- String value = months.get(key);
- if (input.contains(value)) {
- System.out.println("YES");
- break;
- }
- }
- byte[] ptext = text.getBytes(Charset.forName("windows-1252"));
- String value = new String(ptext, StandardCharsets.UTF_8);
- System.out.println(value);
Add Comment
Please, Sign In to add comment