Category: Java Tutorials

java string substring()

Java String substring()

Offering a wide range of features and methods, the Java programming language is one of the major programming languages ​​in use today. The list of available data types is one of the most important...

java bytearray inputstream

Java ByteArrayInputStream Class

A class of the Java programming language called ByteArrayInputStream has been attached to the java.io package. This is a part of an InputStream class, which has primarily been used to read messages from the...

java string startsWith()

Java String startsWith() Method with Examples

The Java string startsWith system can take in two parameters. String prefix( mandatory)- It’s used to check whether” this” string( on which the function is called) starts with the given prefix. It’s also a...

java inputstreamreader

InputStreamReader Class in Java

In Java, an InputStreamReader is a character input stream that gets its data from a stream of bytes. It transforms a byte stream into a character stream by acting as a bridge between an...

java string replaceAll()

Java String replaceAll() Method

Java’s String replaceAll function creates a new string with characters that are related to a supplied string, a defined value, or a regex expression. Explanation The replaceAll() method of the Java String class returns...

java stringwriter

Java StringWriter Class

The StringWriter class is a stream of characters that contains the output of a buffer string, which can be used to create a string. There’s no impact when you close the StringWriter. After the...

java to string() method

Java toString() Method

The toString() method returns the String representation of the object. However, the Java compiler internally invokes the toString() method on the object if you publish any object. So, booting the toString() system returns the...

java string indexOf()

Java String indexOf() Method with Examples

Java is a simple programming language that may be used in a variety of applications. The String indexof() function is commonly used in Java. It mainly used in get substring in String and in...

java string replace()

Java String replace() Method

The replace() method searches for a given character in a string and returns a new string where the given characters are replaced. In this method, a new string is returned when new ones replace...

string concantenation in java

Java String concat() Method with Examples

The concatenation function in Java makes a new string composed of multiple strings. There are two ways of combining strings in Java: The +string operator is used. Use the concat() method. String Concatenation by...