Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Authors
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
John Selawsky
Senior Java Developer and Tutor at
LearningTree
Write a message
A senior Java developer and Java tutor at Learning Tree International programming courses. Sometimes I write some stupid programming stuff about Java. 7 years experience of Java/J2EE development. In Java We Trust.
Author's articles
John Selawsky
Java Collections
23 March 2022 12:01
How to update the value of an existing key in HashMap
You know that there is always a key and a value in HashMap or any other Map. Key is called a key for a reason, because you get the access to values by the key. The key is unique...
John Selawsky
Strings in Java
16 August 2021 11:57
Reverse a String in Java
What is a Reverse String? “Start reading a String beginning from its last character all the way up to the first character. Bingo! that was your reversed string." Here’s a demonstration of how it will look like...
John Selawsky
Java Types
8 June 2021 5:14
Java Byte Keyword
What is a “byte”? 8 bits (bit is the smallest unit of data containing at most 2 logical states, normally 0 and 1) combine to make a single unit of addressable memory, called a “Byte”. Here’s a theoretical representation of what a byte normally looks like...
John Selawsky
Java Collections
18 November 2020 11:06
HashSet contains() Method in Java
What is a HashSet? HashSet is a built-in datatype in Java, and in layman terms you can say “HashSet is an unordered collection of unique elements.” Have a look at a basic example. HashSet extends (extends means a class is inherited from another class) AbstractSet and...
John Selawsky
Java Generics
13 May 2020 12:36
Using varargs when working with generics
Hi! In today's lesson, we'll continue to study generics. As it happens, this is a big topic, but there's no avoiding it — it's an extremely important part of the language :) When you study the Oracle documentation on generics or read online tutorials, you will come across the terms non-reifiable types and reifiable types...
John Selawsky
Java Classes
26 March 2020 7:43
Nested inner classes
Hi! Today we'll take up an important topic: how nested classes work in Java. These internal classes are called nested. They are divided into 2 types: Non-static nested classes (these are also called inner classes), Static nested classes. In turn, inner classes have two distinct subcategories...
John Selawsky
Java Classes
26 March 2020 6:55
Anonymous classes
Hi! In today's lesson, we'll continue to examine the topic of nested classes. Now it's time for the last group: anonymous inner classes. Like the local classes that we talked about in the last lesson, anonymous classes are a kind of inner class... They also have several similarities and differences...
John Selawsky
Java Classes
16 January 2020 9:41
Static nested classes
Hi! We continue to explore the topic of nested classes in Java. In the last exercise, we spoke about non-static nested classes, which are also known as inner classes. Today we move on to another group of classes. We'll consider static nested classes. How are they different from other classes?
John Selawsky
Java Developer
4 September 2019 9:25
8 common mistakes made by rookie programmers
Hi! Today we'll look at 8 very common mistakes made by rookie (and other) Java developers. You'll find plenty of such lists on the web: many of them are similar to one another. As we compiled our list, we were guided by one criterion: whether we made the mistakes ourselves during our studies or employment...
John Selawsky
Java IO & NIO
23 July 2019 13:01
BufferedReader and BufferedWriter
Java’s BufferedReader class reads text from a stream of symbols, buffering the symbols to efficiently read characters, arrays, and strings. You can pass the buffer size to the constructor as a second argument. Here's an example of using the BufferedReader and BufferedWriter classes...
John Selawsky
Inheritance in Java
20 March 2019 12:15
Widening and narrowing of reference types
Hi! In a past lesson, we discussed casting primitive types. Let's briefly recall what was discussed. We imagined primitive types (in this case, numeric types) as nesting dolls that vary in size according to the amount of memory they occupy...
John Selawsky
Java Objects
19 July 2018 12:04
Object lifecycle
Hi! I think you wouldn't be very surprised if I told you that your computer has a limited amount of memory :) Even your hard drive (which is many, many times the size of RAM) can get chock full of your favorite games, TV shows, and other things. To prevent this from happening, you need to monitor the current state ...
1
2
3
Please enable JavaScript to continue using this application.