Browsing Category
Java
Description of Java is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies as possible. Java is a general-purpose programming language that is class-based, object-
Java String toLowerCase() | Convert String Characters To Lowercase
Java string toLowerCase() is an inbuilt function that converts any string to all lower characters. This method helps us to convert a string into all lowercase characters.
Java String toLowerCase()
The java string toLowerCase() method…
Java String toCharArray() Example | Java toCharArray() Function
Java String toCharArray() is an inbuilt method that is used to return a sequence of into an array of characters. The length of the array is equal to the length of the string. The java string toCharArray() method converts the given string…
Java String indexOf() Example | Java indexOf() Function
Java string indexOf() is an inbuilt method that returns the index of given character value or substring. If it is not found, then it returns -1. The index counter starts from zero. The indexOf method is used to get the integer value of a…
Java String compareTo Example | String compareTo() Function
Java String compareTo() is an inbuilt method that is used to compare two strings lexicographically where each character of both the strings are converted into a Unicode value. Java String compareTo() method is used for comparing the two…
Java String length() | How To Find String Length In Java
Java string length() is an inbuilt function that is used to get the length of a Java String. Often, it is required to find out the length of a String, and for such scenarios, Java provides the inbuilt java.lang.String.length() method.…
Java String toUpperCase() Example Tutorial
Java String toUpperCase() is an inbuilt function that is used to convert any string to all lower characters. Java string toUpperCase() method returns the string in the uppercase letter. In other words, it converts all characters of the…
Java Trim String Example | How To Trim String In Java
Java trim() string is an inbuilt method that is used to remove leading and trailing spaces from a given string. The Unicode value of space “ “ is ‘\u0020’; what this method does is, it finds this Unicode value before and ending of a string.…
Java String valueOf() Example | valueOf() Function In Java
Java String valueOf() is an inbuilt method that converts the different types of values (data types) into string type. This method is static, it can take up to two parameters, one is the String, and the other is the radix.
Java String…
Java String getchars() Method Example
Java String getchars() is an inbuilt method that is used to copy the characters from the given string into a destination character array. The getChars() method of String class generally copies character from this string to the target…
Hashing In Java Example | Java Hashing Tutorial
Hashing In Java is a technique that is used for mapping values to the key, which in turn makes it easy to retrieve values by just entering the key. The main advantage of using HASHING in java is that it reduces the time complexity of any…
Java Boolean Class Example Tutorial From Scratch
Java Boolean is an inbuilt class that wraps are used for wrapping the value of primitive data type, i.e. boolean in an object. The boolean class contains two values, i.e. true or false. Java provides a wrapper class Boolean in java.lang…