+ 1
What variables do and why do we need them?
Why do we need to write variables in java? They teach us in the first few lessons. So what do they actually do?
2 Respostas
+ 4
They store information so that you and the program can utilize it in whatever way you need, otherwise you'd never be able to store information in order to compare it with other information, etc...
Variables make it so you can easily store information into memory, and retrieve it, without having to know or remember the memory address. It provides you with a named means of dealing with it, which makes it a lot easier than it originally was.
+ 2
as they said:
they store values, they act like helpers on constructing your code,,,
in general without them there will be no useful and powerful apps & softwares