The common question: How do i make a selection from an arraylist in a simple way. Answer: use the streams api that has been around since forever. Assume the very simple data class B And let’s put some very simple data in it: Selecting with an arraylist as target Or, using a generic List<> to […]
Category: Java
Sorting an ArrayList with Objects
Sorting an ArrayList based on an integer field Sorting an ArrayList based on a double field Sorting an ArrayList based on String field
IntelliJ and Tomcat : Step by Step
You need the commercial (ultimate) version of IntelliJ for this step by step instruction, the community edition does not support this type of project.. I am using IntelliJ ultimate version 2019.2 for this instruction. First, preparations: Installing tomcat Extract the package to where you want to run the server, i will be using c:\work\tomcat You […]
Extract windows 10 lock screen images to your desktop
It seems the location for the wallpapers has changed in (at least) recent Windows 11 builds, you may need to check both of these location: This small toy extract all Windows 10 lockscreen images to a folder on your desktop, and adds a .jpg file extension for easy viewing. usage:
Copy Eclipse workspace settings to another workspace
Eclipse saves it’s settings on a per-workspace basis. The majority of the settings which you will want to have to get started are found under the This means on some operating systems you could symlink a central copy of this folder to the .settings on each newly created workspace to auto-sync all settings across all […]