I've been trying to find it online but nothing is helping me.
I have a coin flip class and a main class. I want to use the coin flip class inside my main method but all I get is errors. I've seen that you need both files in a package, then import it but that doesn't work.
import Game.CoinFlip;
package Game;
public class Main {
public static void main(String[] args) {
coinFlip();
}
}
There are redlines under the main class and package saying "'class' or 'interface' expected". The import statement is also grey.
All help is much appreciated.