« first day (4492 days earlier)      last day (447 days later) » 

12:00 AM
Man is an animal that makes bargains: no other animal does this-- no dog exchanges bones with another. -- Adam Smith (source)
 
 
5 hours later…
5:07 AM
picks nose
 
5:26 AM
does the above two comments mean ... in the last 12 hours, there has been only 2 comments posted in this chat?
 
@Lauren_G Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
 
 
2 hours later…
7:45 AM
@SergeyZolotarev you provide it on the extends part
aka, MyClass extends OtherClass<Integer>
@Lauren_G apart from the chatbot, this chat room is not very lively, indeed
 
 
2 hours later…
9:58 AM
posted on February 09, 2023

 
 
3 hours later…
1:23 PM
How come BinaryOperator is a functional interface if it has no abstract methods (docs.oracle.com/javase/8/docs/api/java/util/function/…)?
 
 
3 hours later…
4:27 PM
Why does it cause an infinite loop? I thought exceptions would be a way out
```
public static String[] dirReduc(String[] arr) {
ArrayList<String> arrayList = new ArrayList<>(Arrays.asList(arr));
try {
while (true) {
arrayList.remove("EAST");
arrayList.remove("WEST");
}
} catch (Exception ignored) {}
try {
while (true) {
arrayList.remove("NORTH");
arrayList.remove("SOUTH");
}
} catch (Exception ignored) {}
return arrayList.toArray(new String[0]);
}
```
 
/javadoc List#remove
5
 
@SergeyZolotarev remove doesn't throw if the element doesn't exist
 

« first day (4492 days earlier)      last day (447 days later) »