Tagged: java tutorials

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 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...

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...

java string charat ()

Java String charAt() Method

We are going to discuss the String charAt() function in Java. The Java String returns the character in a string at the given position charAt(int index) function. The index value should fall between 0...

java dataoutputstream

Java DataOutputStream Class

Java is a wide range and used efficiently for many purposes. DataOutputStream Classes are used in various applications of Java. It shows various methods for the data output of Stream. Explanation The Java DataOutputStream...

java datainputstream

Java DataInputStream Class

To read raw data bytes from images, audio, video, etc., utilise an input stream. The FileReader class allows for reading character streams, which can also be read using character-stream data. Explanation An application can...

java filteroutputstream

Java FilteroutputStream Class

With versions that pass all requests to the underlying output stream, the FilterOutputStream class simply overrides all methods of OutputStream. Some of these methods can be further manipulated by FilterOutputStream’s subclasses, including providing other...

java objectstream

Java ObjectStream Class with Examples

Object streams, like data streams, allow for the I/O of primitive data types. Most, but not all, standard classes enable their objects to be serialized. Those that do implement the Serializable marker interface. ObjectInputStream...