java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method countGold(int, int) from the type Fruit

Coderanch | Jonathon Stride | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    static context ><

    Coderanch | 8 years ago | Jonathon Stride
    java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method countGold(int, int) from the type Fruit

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: Cannot make a static reference to the non-static method countGold(int, int) from the type Fruit

      at Apple.main()
    2. Unknown
      Apple.main
      1. Apple.main(Apple.java:11)
      1 frame