Posts by NathanPB • 308 points
11 posts
-
3
votes1
answer283
viewsA: How to determine the order of executing callbacks functions without resorting to anonymous functions and how does the stack of executing functions in JS work?
Your problem is that your F1, F2, and F3 functions expect a function in your arguments, but they return nothing. So if you use f1(f2(f3(...))), for example, the result of f3 which will be passed on…
-
0
votes0
answers72
views -
0
votes2
answers61
viewsA: I cannot remove default background
Can use !important to overwrite the background priorities. https://zenorocha.com/css-important/ Check the browser developer screen (inspect element) which element is applying the background and…
-
0
votes2
answers65
viewsA: Best way to receive "keyboard" date
Do you need to be from the keyboard? If not, you can use the Jdatepicker. If necessary, you can use "dd/mm/yyyy". Scanner s = new Scanner(); String[] raw = s.next().split("/"); int dia = raw[0]; int…
-
1
votes0
answers25
viewsQ: Reflections with Kotlin
I need to compare a Kparameter with a Kclass, know if the type of the parameter is equivalent to my Kclass. So far I have not found a saint to do this, someone has my solution?
-
0
votes1
answer76
viewsQ: Help with level system (RPG)
Hello, I am trying to build a leveling system (like an RPG). So far I have it: Math.floor(1000 * Math.pow(level, 1.5F)); Here I enter with the level, and get the XP necessary to reach it. But now I…
-
1
votes0
answers161
viewsQ: Add a Document to an Array in Mongodb
This week, I started messing with Mongodb (I’ve never had much contact with any DB before) and a question just came up that I’m not able to solve(I researched, believe me). Let’s go to the following…
-
4
votes1
answer1406
viewsQ: Doubt about System.currentTimeMillis()
I was discussing with a friend now little about the origin of the number that results from this method. Where does it come from? It has been counted since when? It reset?
-
7
votes0
answers188
viewsQ: How to get all methods a class is using
I need to find a way to find all the methods a class is using (watch out, it’s not the methods stated in it). EX: public class Bondia{ public static void main(String[] args){…
-
1
votes1
answer1218
viewsQ: How to put " in a String?
I’m trying to evaluate a PHP code using Java, for that I need to replace in the code all " for \". The problem is that Java also has this escape character to put " in a String. Told me to use \\",…
-
1
votes0
answers133
viewsQ: Error:Abnormal build process termination - Intellij 16.1.1, JDK 1.8.0_21
This is the first time I’m wearing IntelliJ IDEA and soon had problems to compile: Error:Abnormal build process termination: /home/nathanpb/Java/jdk1.8.0_121/bin/java -Xmx700m…