Daniel Demesmaecker

Rancher
+ Follow
since Sep 14, 2017
Daniel likes ...
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
Belgium
Cows and Likes
Cows
Total received
18
In last 30 days
0
Total given
6
Likes
Total received
144
Received in last 30 days
0
Total given
37
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt Green check

Recent posts by Daniel Demesmaecker

Campbell Ritchie wrote:Has nobody noticed that line 48 is in a loop all by itself? All that does is keep reading ints from System.in.
If you are trying to avoid a non‑int, that is the wrong way to do it. You wantActually you want a utility class for your keyboard input:-I am afraid you have some very bad design. Parallel arrays are a very bad and non‑object‑oriented design, and very error‑prone because it is easy to get the numbers out of phase. Create a Product class encapsulating price and description. Don't write all the names twice. Iterate the array and print the elements from the array.


Uhm... Yes...I did, I thought that was the loop that wasn't working...

Daniel Demesmaecker wrote:simply input dosn't have a value yet when it get's to the loop, use a do while instead...
and it's also unclear to me what you're trying to do, my guess is to make this work you'll need to move your menu and the adding of the price inside your loop....
I also wouldn't use 2 array's to keep track of the product and it's price but create an object for it

5 months ago
For some reasson I can't edit my post anymore, so I explain here the lol is not me laughing with the op it's just an anoying habbit of mine, sort of a catchphrase, please ignore it
5 months ago
Lol I maded the example in the mentioned thread... To help you you'll need to post the full error message, you're getting a nullpointer, check on what line to find out which component is giving you the nullpointer.
Show us your fxmlfile you maded with scenebuilder, did you mark your change method with @FXML?
5 months ago
I also wouldn't use 2 array's to keep track of the product and it's price but create an object for it
5 months ago
simply input dosn't have a value yet when it get's to the loop, use a do while instead...
and it's also unclear to me what you're trying to do, my guess is to make this work you'll need to move your menu and the adding of the price inside your loop....
5 months ago
you could use @Qualifier
5 months ago
What is the reasson you think there would be issues? Of there are and you would notice at runtime. I never boughtered to extra check my dependencies...  so i would say it's enough...
5 months ago
Which idea are you using? For intelij by example if you go to your projectstructure and click on problems you can see if there are any issues with your dependencies.
Most likely your idea will also red underline them in your pom and they will simply not work...
5 months ago
you way easier using a multipartfile to pass your file to your controller
5 months ago
As I see it you would have at least three packages entities (containing, what you call modes, objects to bind the data) examples would be user, shoppingcart, shopitem, ..., the second would be controllers to handle the data provided from your frontend, the controllers would call a service which would send the request to your third party api
6 months ago
Spring is not a language, it's a framework and is also written in java and my guess is you wouldn't need the services or implementations, they would be provided by the api.
I don't have to mutch experience with implementing thirth party payment services, but as I guess it would be the user clicks checkout and fills in the payment details, you use that information to sent a request to your thirth party services and they handle the handle everything and send you a response message to let you know if the payment is succesfull or not.
6 months ago
And what don't you understand? It's not initialized, meens you didn't assign a value to it, neigther for mutation4, if you would try to print that one out, you would get the same error
6 months ago

've tried tons of methods to resize things, set padding, preferd col/rows, alignments but like 90% of them do not work. What Ive managed to read online ab fx is that it somehow doesnt care because of a parent node?  


That's right, you can change the settings of your childnodes as mutch as you want, if the parrent node has a fixed size, it won't mather.
Start from the top down set all your containers to computed size and only change the width and higt of the element you wan't to change, that way if you change the childs size, the ancestors will automaticly recompute and change too
6 months ago
I think he means uploading the same file by several different users...
6 months ago
What do you mean by when will java get replaced? Java won't get replaced, normally spoken java will be always there, there might come other languages that are more currently used, but that won't replace it
6 months ago