I pass the below value to jvms hosted on Jboss : <option value="-XX:+PrintGCDetails"/> <option v
enter image description hereI'm very new to the Java world so please forgive my ignorance. What is the optimal way to create 1000 New directories in Java? kn
If I have a collection and I want to iterate over a filtered stream then I could do either of the following (and many more obtuse options): for(item in collect
I have two functions solving the same problem. The first uses a sequential stream, and the second uses a parallel stream. public static int digitalRoot(int n)
I can't get my head around the difference between thenApply and thenCompose. So, could someone provide a valid use case? From the Java docs: thenApply(Function&
I'm trying to figure out how to write a stream in Java 8 that removes duplicate records based on a property and a condition, for example: +----+----------------
I want to transform an ObservableMap's keySet to a read only ObservableSet. I don't want to copy the value, any modification to the ObservableMap must affect th
I could sound naive asking this question but this is a problem that I have recently faced in my project. Need some better understanding on it. df.persist(Stora
I want to display the String pattern aaabbcc to be displayed as 3a2b2c in java8 using streams I have a working example in lower versions String str = "aabbcccdd
I very much want to use Map.computeIfAbsent but it has been too long since lambdas in undergrad. Almost directly from the docs: it gives an example of the ol
I would like to merge two Map with JAVA 8 Stream: Map<String, List<String>> mapGlobal = new HashMap<String, List<String>>(); Map<Str
So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it's easy to change between versions. Doing some Play
We are migrating Tomcat6, java 6 and Oracle 10g web-applications to Tomcat 8, Java 8 and Oracle 10g. Our applications working fine after migrated, but initial c
Do lambda expressions have any use other than saving lines of code? Are there any special features provided by lambdas which solved problems which weren't easy
I have JSON-object which has a dynamic key inside it. I need to get a specific value mapped to this dynamic Key. For example: value "10.00" will be returned for
So I have a collection of objects that have a step variable that can be 1 - 4. public class MyClass { private Long step; //other variables, getters, s
In java 8, what's the best way to check if a List contains any duplicate? My idea was something like: list.size() != list.stream().distinct().count() Is it
I am trying to create a website that allows the user to update, edit, delete, etc., and I have got to the part of Updating or Editing user’s information.
How can I serialize a Java 8 java.util.Stream<T> with Jersey. I tried to write a MessageBodyWriter, but I need to know how to compose (decorate) existing
Testing some things out I tried o make an enum in which every one element in a enum have a different class inside. Take for example: public enum MyEnum { f