Java Programming Tutorials

Java programming tutorials with many code examples!

Java Enumeration to List

Problem:

When using legacy libraries sometimes you need to convert Java Enumeration to List to use it with modern code it comfortable way. Again Java Collections API comes to the rescue!

Read More

Share with the World!

Java List sublist

Problem:

How to find a first/last occurrence of sublist in Java List? As expected Java Collections API has a method for this. See the example for details.

Read More

Share with the World!

Java Collection to Enumeration

Problem:

When working with legacy code, you need to convert Java Collection to Enumeration. This example shows how to do that using Java Collections API features!

Read More

Share with the World!

Java list replace/fill elements

Problem:

Sometimes we want on Java List replace/fill all/selected elements. It can be done manually, but much better way is to reuse Java Collections API. See how!

Read More

Share with the World!

Java find/count occurrences

Problem:

Sometimes you have to in Java find/count occurrences of objects inside a Java Collection. It can be done manually, but vast Java Collections API provides a better way.

Read More

Share with the World!

Java contains any

Problem:

How to check that a collection in Java contains any of elements from some other collection? It’s very common problem when working on Sets, but also applicable to Java Lists and other collections.

Read More

Share with the World!

Java List copy

Problem:

There is a number of ways do to Java List copy. Which one is best? Which one apply to your situation at hand? In this post you will find this out!

Read More

Share with the World!

Kill tasks to increase productivity

Kill tasks to increase productivity

Kill tasks to increase productivity

Do you remember the times when you were wasting your time thinking what to get down to? As a solution to this problem you discovered a list of tasks so that each new task to perform is put in your list. The list is growing and an evening review of the tasks for the next day begins to scare you.

Read More

Share with the World!

Mind Maps – organize your thoughts

Mind Maps

Mind Maps

Mind maps? Sounds a bit puzzling. How often do you happen to make a note of something and then forget or lose a piece of paper with the notes on it? Or maybe you read your notes later and do not understand them at all?

The process of writing or noting involves only the left hemisphere of the brain. Notes are usually long, visually monotonous, difficult to remember for the brain. When we read them, we often catch ourselves thinking about something else. This is all because you set your brain to a very monotonous, tedious work.

Read More

Share with the World!