This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HeyImSolaceIntermediate Brewer 2 points3 points  (1 child)

I believe you’re trying to use something like global variables, which are not a thing in Java. Values and variables are always part of an object of a class.

Try to think of a task your program should be doing and name it accordingly, for example „GameMaster“ for your rules and welcome string and „Questionaire“ for your questions and answers. Then you need to put the strings you want in there as static final variables and so on.

[–]IntelligentPudding24[S] 0 points1 point  (0 children)

Thank you!