Bit of a newbie question:
All the online/manual and online tutorials explain how to initially assign something to a variable, but how do you change it when the program is running? In BASIC something like "if a$ = 2 then b$ = 3"
Also how can you take a string, say an input and assign it to a variable instead of using "system.out.println"
But how do you do this in JAVA? I'm not used to high level programming - BASIC is about as high level as I know.
Cheers,
Dave.
All the online/manual and online tutorials explain how to initially assign something to a variable, but how do you change it when the program is running? In BASIC something like "if a$ = 2 then b$ = 3"
Also how can you take a string, say an input and assign it to a variable instead of using "system.out.println"
But how do you do this in JAVA? I'm not used to high level programming - BASIC is about as high level as I know.
Cheers,
Dave.
Comment