Skip to content

Tag: java

Should I do things like this?

I’m only started learning guava. So I don’t know best practices and etc. These is code (it binding some classes and put in Order by input collection): So, should I separate it in several operations? upd what does it do? It takes collection. Sorts it. Maps each object to other one. Creates new Immu…

Print array without brackets and commas

I’m porting a Hangman game to Android and have met a few problems. The original Java program used the console, so now I have to somehow beautify the output so that it fits my Android layout. How do I print an array without the brackets and commas? The array contains slashes and gets replaced one-by-one …

“Uncompilable source code” RuntimeException in netbeans

I’m trying to help another developer who is using Netbeans. When he runs or debugs some code of his in Netbeans (6.9.1) he gets an “Uncompilable source code” RuntimeException. I’m pretty experienced in Java but am more used to IntelliJ, and haven’t used Netbeans at all. I’v…