This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var str = new String("Hello"); | |
var list = new ArrayList<String>(); | |
var integerList = List.of(1,2,3,4); | |
for (var data :integerList) { | |
System.out.println(data); | |
} | |
for (var i = 1; i <= integerList.size(); i++) { | |
System.out.println(i); | |
} | |
var path = Paths.get("/src/main/resources/app.log"); | |
try(var file = Files.lines(path)){ | |
//some code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment