English
Open in Telegram
CCore Java | Java for Beginners
Core Java | Java for Beginners
@codeitupjava · group · Tech · indexed since 2026-10-08 archive for October 2021
1 312members
62writing in 30 days
3 083messages in 30 days
138 323messages in the index

Messages from October 2021

‹ October 2021 ›×
  1. K
    static boolean isOld(String boxVersion) { try { for (String i: boxVersion.split(" ")) { Integer.parseInt(i); } return false; } catch (NumberFormatException e) { return true; } } public static List<String> sortBoxes(List<String> boxes) { List<String> newer = new ArrayList<>(); List<String> older = new ArrayList<>(); for (String i: boxes) { if (isOld(i.split(" ", 2)[1])) { older.add(i); } else { newer.add(i); } } older.sort((a, b) -> { String[] p1 = a.split(" ", 2); String[] p2 = b.split(" ", 2); int c = p1[1].compareTo(p2[1]); if (c == 0) { return p1[0].compareTo(p2[0]); } else { return c; } }); older.addAll(newer); return older; }
Whole thread · 1 reply →
  1. K
    The 1st point is more like an instruction than a question.
Whole thread · 1 reply →

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count