Шукаєте відповіді та рішення тестів для Programare orientata pe obiecte (POB)? Перегляньте нашу велику колекцію перевірених відповідей для Programare orientata pe obiecte (POB) в elearning.unitbv.ro.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
String-urile x si y sunt identice
String data1 = LocalDate.of(2013, 11, 18).toString();
String data2 = LocalDate.of(2038, 1, 1).toString();
String x = data1.replaceAll("[1-]", "");
String y = data2.replaceAll("-", "").substring(0,4);
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String regex = "[[[[a]b]c]d]e";
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia find().
String regex = "[^^]";
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia find().
String regex = "[^*]";
Care este rezultatul urmatoarei secvente de cod?
String text = "abcde123abcde456";
text = text.replaceAll("\\d{2}", "x");
String[] parts = text.split("\\d+");
System.out.println(text + " " +parts.length);
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia matches().
String regex = "(B(AB|A){1,}D){1,}";
Selectati ce string-uri se potrivesc cu expresia de mai jos folosind functia find().
String regex = "..";
Folosind functia find() si expresia de mai jos, se va detecta orice sir de caracter dat, indiferent de caracterele sale.
String regex = "";
In acest caz, variabila sir2 este egala cu "cccbbc", inlocuind toate aparitiile caracterelor 'a' si 'c' cu caracterul 'c'
String sir1 = "aaabbc";
String sir2 = sir1.replaceAll("[^ac]", "c");
Care este rezultatul urmatoarei secvente de cod?
String sir1 = "aaabbc";
String sir2 = sir1.replaceAll("", "e");
System.out.println(sir2);
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!