Search:

Type: Posts; User: Adam5981

Search: Search took 0.10 seconds.

  1. Replies
    22
    Views
    788

    Re: Java access to another method

    i will try something but thanks for now
  2. Replies
    22
    Views
    788

    Re: Java access to another method

    String[] = Questions{};
    String[] = Answers1{};
    String[] = Answers2{};
    String[] = Answers3{};
    String[] = correctAnswers{};

    public class Question extends ListenerAdapter{

    public void...
  3. Replies
    22
    Views
    788

    Re: Java access to another method

    i just updated my code
  4. Replies
    22
    Views
    788

    Re: Java access to another method

    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
  5. Replies
    22
    Views
    788

    Re: Java access to another method

    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?
  6. Replies
    22
    Views
    788

    Re: Java access to another method

    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...
  7. Replies
    22
    Views
    788

    Re: Java access to another method

    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?
  8. Replies
    22
    Views
    788

    Re: Java access to another method

    Class level
  9. Replies
    22
    Views
    788

    Re: Java access to another method

    Idk how to do it
  10. Replies
    22
    Views
    788

    Re: Java access to another method

    i edited code tags
  11. Replies
    22
    Views
    788

    Re: Java access to another method

    i just edited post
  12. Replies
    22
    Views
    788

    Java access to another method

    String[] = Questions{};
    String[] = Answers1{};
    String[] = correctAnswers{};

    public void onGuildMessageReceived(GuildMessageReceivedEvent event){
    String[] args =...
  13. Thread: Java String[]

    by Adam5981
    Replies
    1
    Views
    628

    Java String[]

    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...
  14. Replies
    2
    Views
    767

    Re: Java Quiz in jda

    I just figured it out,but thanks
  15. Replies
    2
    Views
    767

    Java Quiz in jda

    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...
Results 1 to 15 of 16