Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Java Blog
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
You must belong to more groups
Create article
All groups
New
Artem Divertitto
Inheritance in Java
December 25, 2024 at 12:45 PM
Java Extends Keyword with Examples
What is Java extends Keyword? The extends in Java is a keyword that indicates inheritance between a child and parent class. Extends In Java is a keyword that is written with the child class during class declaration followed by the name of the parent class. When a child class...
Artem Divertitto
Java IO & NIO
December 25, 2024 at 9:09 AM
Scanner NextInt() Method in Java
What is the nextInt() Method in Java? The nextInt() method scans the next token of the input data as an “int”. As the name of the class Scanner elaborates, nextInt() method of this class is used to scan or...
John Selawsky
Java Numbers
December 25, 2024 at 8:35 AM
How to Convert Long to Int in Java
In this article we are going to explain how to convert long to int in Java and write some code examples. Since long is a larger data type than int, here we should use type casting for such conversion...
Vasyl Malik
Java Algorithms
December 24, 2024 at 11:26 AM
Merge Sort in Java
The Merge Sort is the most common algorythm for sorting data using the “divide and conquer” technique. In this algorithm, the problem is divided into subproblems and then after sorting they are merged together...
Aditi Nawghare
Strings in Java
December 24, 2024 at 9:50 AM
Java String format()
The Java string format() method is used to format strings, integers, decimal values, and so on, by using different format specifiers. This method returns the formatted string using the given locale, specified formatter, and arguments. If no locale is provided then it uses the default locale for formatting the strings...
Volodymyr Portianko
Java Collections
December 24, 2024 at 8:56 AM
How to create a dictionary in Java
If you need to create a dictionary in a Java program, the most logical way to solve this problem is to use the dictionary data structure. This data structure allows you to store information in the form "key - value". Java has a special Dictionary...
John Selawsky
Strings in Java
December 23, 2024 at 12:53 PM
Java String replace() Method
What are the common replace() methods of String class in Java? The String class provides four different kinds of replace() methods in Java. Each of the methods addresses a specific use case. Their names are listed below...
Vasyl Malik
Java Arrays
December 23, 2024 at 9:21 AM
Arrays.copyOf() Method in Java
What is Arrays.copyOf() method in Java? Java class java.util.Arrays provides a method called Arrays.copyOf() that returns a copy of an array passed as a parameter to this function, followed by specifying...
Volodymyr Portianko
Java Collections
December 22, 2024 at 7:29 AM
HashMap computeIfAbsent() method in Java
Java 8, as many of us know, introduced the Stream API. This is a very useful toolkit, but it has a drawback, it does not include Maps. However, Java 8 added several useful methods to the Map interface itself to reduce the amount of "bad" code...
Alex Vypirailenko
Strings in Java
December 21, 2024 at 12:12 PM
Printf() in Java
printf() method belongs to the Java standard library and plays an important role in formatting output. This article will provide beginners with a comprehensive understanding of the printf() method, its purpose, and how to use it effectively...
John Selawsky
Java Collections
December 21, 2024 at 8:49 AM
HashMap getOrDefault method in Java
What is the getOrDefault method for HashMaps in Java? “The getOrDefault method returns the value mapped to the specified key in a HashMap. If that key is not present then a default value is returned.”...
Aditi Nawghare
Keywords in Java
December 20, 2024 at 6:47 PM
Java Protected Keyword
In Java, access modifiers control the visibility of classes, methods, and variables. "Protected" is one of these modifiers that restricts the accessibility of a class member...
Show more
1
...
11
12
13
14
15
...
76
Please enable JavaScript to continue using this application.