Posts by Elias Developer • 1,869 points
3 posts
-
124
votes5
answers9611
viewsQ: How do Closures work in Javascript?
I always wanted to know how Closures work in Javascript, I’ve read some settings but never understood very well. Could you give me a simple, objective but content explanation?
-
21
votes6
answers36799
viewsA: How to read a text file in Java?
The easiest way to read a Java file after Java 7 is through the NIO2 library. You do this with a single line of code: String dados = new String(Files.readAllBytes(file.toPath())); It is also the…
-
31
votes6
answers36799
viewsQ: How to read a text file in Java?
I have the file called dados.txt and I want to put it on String. For example: String texto = lerArquivo("conteudo.txt"); Question How to write this method lerArquivo()?…