Skip to content

Instantly share code, notes, and snippets.

@yrashish

yrashish/Allowed.java

Last active Dec 30, 2020
Embed
What would you like to do?
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