python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Java ClassLoader.getResourceAsStream(path) return null when resource is inside nested jar
My springboot project (project A) has dependency to library (library B) which is jar file (it's also my project, but source code is not present during compilation project A). Inside jar I have directo...
Piotr S
Votes: 0
Answers: 1
Android studio fileFilter with assetManager
I have the following functionality to a desktop application with java and I want to do the same thing for a mobile application.
File f = new File(pathToFiles);
File[] files = f.listFiles(new FileFilt...
konkouts
Votes: 0
Answers: 1
Why BufferedWriter is writing the data into the file partially?
I am trying to write a json file using this code:
File f = new File("words_3.json");
if (!f.exists()) {
f.createNewFile();
}
if (fileWriter == nul...

eFortsHub
Votes: 0
Answers: 1
How to write the data from a HashMap into a file in Sorted order with Streams
I can output sorted entries from a HashMap like this:
public static void sortAverageTime(HashMap<String, Integer> noSortedMap) {
noSortedMap.entrySet().stream()
.sorted(Map.Entry...
yarik test
Votes: 0
Answers: 2