Java 1.4.2 - Reading Files

后端 未结 3 1273
南笙
南笙 2020-12-22 06:58

I am trying to read a simple file and then a file which the user is supposed to select. I keep on getting the following error though:

Readzilla.java:3

3条回答
  •  鱼传尺愫
    2020-12-22 07:25

    You cannot invoke a constructor from an object, only when you create the object with 'new'. You would just say 'line = read.readLine();' for the problem line.

提交回复
热议问题