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 =...
String[] string1={"A","B","C"};
String[] string2={"A","D"};
Hi im doing project in Java JDA and want to ask when i have this type of code and want to do boolean if something from string2 is in...
I just figured it out,but thanks
Hi im doing project to school QUIZ via using java JDA, where im sending Question from String[] to embeds via Random() but i have problem how to send answers to this random generated question. Any...