Skip to content

Something wrong with armstrong number java code

I wrote a code for school in java that verifies if a number is an armstrong number. I programmed it so that it runs as many times until the user inputs 0, at which the program will terminate. I am having 2 problems. The code only works the first time through, if the user inputs 371 (an armstrong number) the

Graphviz’s dot tool on Windows

I’ve created a java program to write a .dot file as I’m using Graphviz software to visualize some data. There is nothing wrong with a code itself, but when I try to execute the following command in command prompt: dot -Tpdf data.dot -o data.pdf in a folder where my java code is located, I get the …

Spring save locale and change locale when user logs in

I have a spring application that I want users to be able to change the preferred locale. Currently users can change the locale for the current session but I want to be able to save the users option so that whenever they log in, the saved locale is used if one exists. I have a mysql database which I’m us…

how to traverse a Boolean recursion array

The exercise: Build a recursion(with no loops) that every cell that you go inside is the number of steps that you can go, it could be right/left until you get to the last cell. if you can’t get to the last cell return false, else return true. you must start from index 0. My problem: I build the program,…