Java

Java is a simple, secured, high level, platform-independent, multithread, Object-oriented programming language.

 

It’s one of the most popular and widely used programming language, platform, and technology. Java is not only a language it is also a platform and technology.

 

Related Pages:-

Enum of Strings Java

Enum of Strings Java | The enum is a keyword that is present in the special classes to represent constants. To create an enum we use the enum keyword and separate constants with a comma. The enum stands for enumeration which means “specifically listed”, these are more used in switch statements. These enums are just […]

Enum of Strings Java Read More »

Compare Strings Alphabetically Java

Compare Strings Alphabetically Java | Here, in this blog, we will discuss how to compare two strings alphabetically in Java. We can use the compareTo() or equals() method available in the Java String class to do this. To understand more see the below examples:1) string 1= “java”string2= “java”Output:- Both strings are equal 2) string1= “Java”string2

Compare Strings Alphabetically Java Read More »

StartsWith() In Java String Class

StartsWith() In Java String Class | Java String class provides a way to check whether a string starts with a specified character/string or not by using the starsWith() method. This is basically a string class method that returns a boolean value true or false. Similar to startsWith() method String class also contains endsWith() method to

StartsWith() In Java String Class Read More »

Convert String To Long Java

Convert String To Long Java | Here, we will see how to convert string to long in Java. There are many ways to do this:- By using the parseLong() method of the Long class. By using the valueOf() method of the Long class. By using the constructor of the Long class. For example:1. String:- “123”Long

Convert String To Long Java Read More »

How to Sort ArrayList of Strings Alphabetically in Java

How to Sort ArrayList of Strings Alphabetically in Java? In this section, we will discuss how to sort ArrayList of strings alphabetically in Java. Let us understand it through an example:- For example:-list = [“Java”, “Python”, “HTML”, “C++”, “CSS”]list after sorting alphabetically:- [C++, CSS, HTML, Java, Python] To sort ArrayList of strings alphabetically in Java

How to Sort ArrayList of Strings Alphabetically in Java Read More »