Forum Stats

  • 3,722,437 Users
  • 2,244,309 Discussions
  • 7,849,836 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Error while compiling nested classes

Hello

I downloaded the Tetris example from web


I am using Java 15 and am having compilation error: "Cannot find the nested class" (Shape.Tetrominoe)

Any idea what I can do?

Thank You

Deepak


Error:

import Shape.Tetrominoe;

      ^

Board.java:28: error: cannot find symbol

  private Tetrominoe[] board;

      ^

 symbol:  class Tetrominoe

 location: class Board

Board.java:52: error: cannot find symbol

  private Tetrominoe shapeAt(int x, int y) {

      ^

 symbol:  class Tetrominoe

 location: class Board

Sign In or Register to comment.