- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
public Pattern waitNotEmptyRegex(){
String read;
Pattern pattern;
while (true) {
try {
try {
read = in.readLine();
if (!read.trim().isEmpty()) {
pattern = Pattern.compile(read);
} else {
context.getOut().write(context.localizKey("console.messages.emptyString") + "\n");
}
} catch (PatternSyntaxException e) {
context.getOut().write(context.localizKey("console.messages.invalidPattern") + "\n");
}
}catch (IOException e){
throw new IllegalStateException(e);
}
}
}
AnalCastingManager 20.08.2018 20:31 # 0
roskomgovno 20.08.2018 22:45 # 0
серьезно?
the-alator 22.08.2018 09:59 # 0
Ray_Mints 30.08.2018 10:11 # 0
guest8 30.08.2018 12:58 # −999
roman-kashitsyn 30.08.2018 11:28 # 0
> throw new IllegalStateException(e);
> }
Серьёзно, прям illegal state?
> the Java environment or Java application is not in an appropriate state for the requested operation.
the Java application developer was not in an appropriate state to handle this error properly.
the-alator 27.10.2018 23:15 # 0
guest8 27.10.2018 23:27 # −999
0BEH 28.10.2018 00:21 # 0
guest8 28.10.2018 01:13 # −999