Search:

Type: Posts; User: Adam5981

Search: Search took 0.11 seconds.

  1. Replies
    22
    Views
    794

    Re: Java access to another method

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

    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
    794

    Re: Java access to another method

    i just updated my code
  4. Replies
    22
    Views
    794

    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
    794

    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
    794

    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
    794

    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
    794

    Re: Java access to another method

    Class level
  9. Replies
    22
    Views
    794

    Re: Java access to another method

    Idk how to do it
  10. Replies
    22
    Views
    794

    Re: Java access to another method

    i edited code tags
  11. Replies
    22
    Views
    794

    Re: Java access to another method

    i just edited post
  12. Replies
    22
    Views
    794

    Java access to another method

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

    public void onGuildMessageReceived(GuildMessageReceivedEvent event){
    String[] args =...
Results 1 to 12 of 13