Formatter close() method in Java with Examples
The close() method is a built-in method of the java.util.Formatter which closes the formatter. In case it is already closed, it will have no effect. Closing it means that it will release the resources that it is already holding.
public void close()
Parameters: The function accepts no parameter.
Return Value: The function returns nothing, it just closes the formatter. Hence the return type is void.
Below is the implementation of the above function:
What is your name? My name is Gopal Dave ! What is your name? My name is Gopal Dave !
Java programs are fun !
My Personal Notes arrow_drop_up
Please Login to comment...