+ 1
Variables in Java
Hello! I have a question , how to create some variables, amount of which set user Example : Int1 = 5 Int2 = 4 ... IntN= M * without making massiv, will be better with using for or while P/s sorry for bad English đ
5 Answers
+ 2
why dont you use an array? check this thread: https://www.sololearn.com/Discuss/1085371/using-arrays
+ 1
This should help you out https://stackoverflow.com/questions/6729605/assigning-variables-with-dynamic-names-in-java
+ 1
You want to create as may variables as user inputs? or you want to assaign values that user inputs to variables?
+ 1
do you want to give it as a user input?
0
type_of_variable variable;