In Java, there are these array-backed lists that are generated when you convert arrays to lists using Arrays.asList(…). The list and the array objects point to the same data stored in the heap. Changes to the existing contents through either the list or array result to changing the same data.
DOS – Change your command-line prompt
We can change our default DOS prompt in a command-line window. Sometimes we do not want people knowing the current path we work on or from which directory we invoke commands in a command-line window (DOS prompt). We can temporarily
PowerShell – Run application from command line
If you are familiar with Windows Command Line or MS-DOS, PowerShell is way more powerful than them. If you are also familiar is Unix scripting, PowerShell is the ultimate Windows Scripting language.
Eclipse – Highlight selected text
I’ve been using this copy of Eclipse Mars since last year but only noticed today that selected texts are not highlighted. So, I thought maybe they made it configurable or turned off by default.
Java – break outer loop from inner loop
Whenever you use break; (or continue;), by default it only affects the current loop where it is invoked . If you are in a inner loop, surely the only loop that you can break; from is that loop. What if you need to break; from the outer-most loop in order to proceed to the next set of instructions?
Java – comparing numeric primitives
Comparing numeric primitives in Java.
Create JSF2 application with Eclipse Mars
Create a JSF2 application with the new Eclipse Mars and Java 8.
Java – convert InputStream to InputStreamReader
This post demonstrates how to convert a file to InputStreamReader.
Understanding Java Security Manager in 5 minutes or less
General Idea The general idea of Java Security Manager is to restrict what an application can do. This is important as it provides a separate environment for programs to do whatever they do without affecting the host system or other
Java – Get a directory’s size
There’s a few ways to get a directory’s size.