Skip to content

Tag Archives: Java-Functions

Map Values() method returns the Collection view of the values contained in this map. The collection is backed by the map, so changes to the… Read More
The writer() method of Console class in Java is used to retrieves the unique PrintWriter object which is associated with the console. Syntax: public PrintWriter… Read More
The printf(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
The reader() method of Console class in Java is used to retrieve the unique Reader object which is associated with the console. This reader() method… Read More
The readLine() method of Console class in Java is of two types: 1. The readLine() method of Console class in Java is used to read… Read More
The flush() method of Console class in Java is used to flush the console and to force any buffered output to be written immediately. Syntax:… Read More
The readPassword() method of Console class in Java is of two types: 1. The readPassword() method of Console class in Java is used to read… Read More
The format(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
A method is a collection of statements that perform some specific task and return the result to the caller. A method can also perform some… Read More
The mark() method of BufferedReader class in Java is used to mark the current position in the buffer reader stream. The reset() method of the… Read More
The of(int hour, int minute, int second, int nanosecond, ZoneOffset offset) method of the OffsetTime class in Java is used to create an instance of… Read More
The reset() method of BufferedReader class in Java is used to fix or mark the position at the last marked position so that the same… Read More
The getOffsetAfter() method of java.time.zone.ZoneOffsetTransition class is used to get the offset value of second offset zone after transition has taken place. The first and… Read More
The reset() method of BufferedInputStream class in Java is used to reset the position of the stream to the position at the time the mark… Read More
The now() method of the OffsetDateTime class in Java is used to obtain the current offset date-time using the system clock. This is done after… Read More