Re: Beginner CSV error



For this sample you can alter the line with main on it to:

public static void main(String[] args) throws
java.io.FileNotFoundException {


Making a FileReader can cause a problem, if the file does not exist,
during the creation of FileReader. If there is a problem a signal,
called an exception, is sent back. You can catch it or have a method
it throw it to its own caller.

Here is a doc that explains exceptions:
http://mindprod.com/jgloss/exception.html

Opalinski
opalpa@xxxxxxxxx
http://www.geocities.com/opalpaweb/

.



Relevant Pages

  • Re: [Newbie] Reading & Writing Objects To File
    ... | java.io.StreamCorruptedException exception. ... |>> public static void main(Stringargs) ... |>> new CardCreatorDump(); ...
    (microsoft.public.dotnet.vjsharp)
  • Re: crushing java
    ... your reaction just proved you to be sentimental and self blinded ... public static void Main(stringargs) ... }catch(Exception e) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: crushing java
    ... your reaction just proved you to be sentimental and self blinded ... public static void Main(stringargs) ... }catch(Exception e) ...
    (microsoft.public.dotnet.framework)
  • Re: I need to know if a java class import a package
    ... to test if they can iterate an order an array by themselves). ... public static void main(Stringargs) throws Exception { ...
    (comp.lang.java.programmer)
  • Re: problem...sorry my first time with java
    ... public static void main{ ... java cl_gm ... the String array passed to the main method as args[] will be empty, ... You may wish to familiarise yourself with the javadoc for the exception ...
    (comp.lang.java.help)