Forum Stats

  • 3,740,995 Users
  • 2,248,356 Discussions
  • 7,861,567 Comments

Discussions

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.