Skip to content

Tag: java

Adding a String into a scanner

//I wanted to insert a decimal number to console (like 1.85) to the String groesse and I also wanted it to be in the equation of bmi. How do i do that? } Answer How do i do that? OK, so you want to read user input from the console. To do so, instead of … use The same applies

Pulsar client thread balance

I’m trying to implement a Pulsar client with multiple producers that distributes the load among the threads, but regardless the value passed on ioThreads() and on listenerThreads(), it is always overloading the first thread (> 65% cpu while the other threads are completely idle) I have tried a few th…

Intellij not recognizing wrong return type

I have this method: Now my IDE complains (as expected, and which is correct) about this line, because the return type is supposed to be CacheResult What I currently dont understand, is that the IDE (IntelliJ) is not complaining about this: Which is actually wrong. What am I missing here? Answer This works bec…