Uncompilable source code - Erroneous sym type: java.io.File.getSampleV

前端 未结 2 727
野的像风
野的像风 2021-01-29 14:47
import java.io.File;

import java.io.FileInputStream;

//import javax.swing.JFrame;
public class filterpanitha {
//public void graph(){

//}
/**
 * @param args
 */
publi         


        
相关标签:
2条回答
  • 2021-01-29 15:15

    This exception java.lang.RuntimeException: Uncompilable source code is seen when using an IDE which allows you to run your project/code, even if some classes are not compiled (due to errors in code). I suggest fixing your code and you have zero errors before running your project.

    Also, java.io.File never have the method setSampleValueAt(). This is what causes your code to never compile.

    0 讨论(0)
  • 2021-01-29 15:21

    Your error is in this line

    int value = file.getSampleValueAt(index);
    

    File doesn't provide the method getSampleValueAt.

    0 讨论(0)
提交回复
热议问题