Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Re: Trouble calling static methods from another class

    Where are x and y given values in that method where those variables are defined? They are given a value of 0 when they are defined and that value is never changed in the method where their values...
  2. Re: Trouble calling static methods from another class

    Please copy the full text of any error messages and paste them here so we can see them. Don't post images as their contents can not be copied to include in a response.


    It does what it is coded...
  3. Re: Trouble calling static methods from another class

    A variable is defined by coding a data type like int or char or a class like String:

    int anInt; // defines an int variable
    String aStr; // defines a reference to a String object.
    ...
  4. Re: Trouble calling static methods from another class

    If there are error messages, please copy the full text and paste it here.


    The compiler can not find a definition for that variable that is in scope where it is being used.
  5. Re: Trouble calling static methods from another class

    The compiler can not find a static method named: printMessage in the StaticMethodExample class. Check the spelling.


    The compiler can not find a definition for x or y where they are used in the...
Results 1 to 5 of 5