-
Notifications
You must be signed in to change notification settings - Fork 124
Common things that break Android
BenjaminAmos edited this page Sep 12, 2021
·
1 revision
for (Object musicFileName : musicNode.getJSONArray("menuMusic")) {
logger.info(musicFileName.toString());
}
JSONArray musicArray = musicNode.getJSONArray("menuMusic")
for (int fileNameNo = 0; fileNameNo < musicArray.length(); fileNameNo++) {
Object musicFileName = musicArray.get(fileNameNo);
logger.info(musicFileName.toString()));
}
List<Object> arrayList = new ArrayList<>(mazeNode.toList());
List<Object> arrayList = new ArrayList<>();
for (int i = 0; i < mazeNode.length(); i++) {
arrayList.add(mazeNode.get(i));
}
float minGrav = rootNode.getFloat("minGrav");
float minGrav = (float) rootNode.getDouble("minGrav");
Class#getTypeName
ThreadLocal#withInitial
- Any of the
java.nio
classes (Path
,FileSystem
etc.) - UseFile
instead