i will try something but thanks for now
Type: Posts; User: Adam5981
i will try something but thanks for now
String[] = Questions{};
String[] = Answers1{};
String[] = Answers2{};
String[] = Answers3{};
String[] = correctAnswers{};
public class Question extends ListenerAdapter{
public void...
i just updated my code
if you look to my program you see that i want to compare 2 arrays but i cant cuz i need index which is used in first method as randomnumber but java dont allow it to me.
this project should be QUIZ
but when i use gene() it will return me int number but when i call it again it wont be same value , can i do it somehow?
public int gene(){
Random rrr = new Random();
int number = rrr.nextInt(otazky.length);
return number;
}
i did this in class so i can use it in all methods but when...
ye but im changing vaule of this integer in first method and want use same value which is generated there in another method, is it possible?
Class level
Idk how to do it
i edited code tags
i just edited post
String[] = Questions{};
String[] = Answers1{};
String[] = correctAnswers{};
public void onGuildMessageReceived(GuildMessageReceivedEvent event){
String[] args =...