cant read input file 怎么改啊


javax.imageio.IIOException: Can't read input file!
    at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1310)
    at Tetris.Tetris.(Tetris.java:34)
Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
    No enclosing instance of type Tetris is accessible. Must qualify the allocation with an enclosing instance of type Tetris (e.g. x.new A() where x is an instance of Tetris).

    at com.tetromino.randomOne(tetromino.java:39)
    at Tetris.Tetris.(Tetris.java:114)
    at Tetris.Tetris.main(Tetris.java:123)

你这是读取图片吗?如果是话,看看图片地址是否正确。

你这是静态方法直接调用动态方法了吧,在类名前加上static 把内部动态类改成静态类