DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVA
java try with resources
try
(
PrintWriter
writer
=
new
PrintWriter
(
new
File
(
"test.txt"
)
)
)
{
writer
.
println
(
"Hello World"
)
;
}
Source by www.baeldung.com #
PREVIOUS
NEXT
Tagged:
#java
#resources
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit