public static void StringInsert(String infile) throws Exception
{
.......................
.......................
}这个单独编译是没有问题的。它与main()在同一文件中。

解决方案 »

  1.   

    编译的时候提示错误信息:"ClobInsert.java": unreported exception java.lang.Exception; must be caught or declared to be thrown at line 13, column 9Hello.java源代码如下:class  Hello
    {
    public static void main(String[] args) 
    {
    System.out.println("Hello World!");
    }
    }public static void StringInsert(String infile) throws Exception
    {
    .......
    .......
    }StringInsert这个是没问题的,单独编译的时候没有出错。
      

  2.   

    new 类().StringInsert("123456789");
      

  3.   

    StringInsert他是一个类还是一个接口???