Why do I keep getting “Evaluations must contain either an expression or a block of well-formed statements”?

后端 未结 6 1513

In my code, I am trying to output the value of src in the expressions window.

public void doIt() {
    String src = \"test\";
    System.out.pri         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 11:24

    According to https://stackoverflow.com/a/21763943/733092, this happens when the class contains a generic method like

    public  T myMethod() {};
    

提交回复
热议问题