Results 1 to 4 of 4
- 07-31-2007, 04:20 AM #1
Member
- Join Date
- Jul 2007
- Posts
- 40
- Rep Power
- 0
Variable passing, Error: IOException
Hi, I am working on a project and trying to get this to work.
So far it compiles correctly but when it runs it says error. The method clearrun is designed to receive a integer and display it the throws IOException is put in there as a safe gaurd from the other program accessing it using User Responses. But when i run it there is an error about main or something.Java Code:import java.io.IOException; public class clearrun { public static void clearrun(String args[]) throws IOException { int a=0; clearrun(a); } public static void clearrun(int a) throws IOException { System.out.println(""+a); } }
Thanks.
- 07-31-2007, 06:06 AM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 130
- Rep Power
- 0
Could u post what the error messages is?
That would be helpful for us to help
- 07-31-2007, 07:17 AM #3
Member
- Join Date
- Jul 2007
- Posts
- 10
- Rep Power
- 0
Hi fernando
when i tried your code that time it is working fine
there may be problem becouse of class name so pls if still error
is there pls send that error but your code is working fine.
- 07-31-2007, 02:03 PM #4
Senior Member
- Join Date
- Jul 2007
- Posts
- 135
- Rep Power
- 0
Similar Threads
-
java.io.IOException: CreateProcess: matlab error=2
By Jack in forum Advanced JavaReplies: 3Last Post: 04-10-2008, 09:01 AM -
Passing Environment Variable in Eclipse Europa
By ajaymenon.k in forum EclipseReplies: 0Last Post: 11-19-2007, 10:08 AM -
Passing variable information between classes
By zen_to_go in forum New To JavaReplies: 1Last Post: 10-30-2007, 08:09 PM -
java.io.IOException: invalid header field
By osval in forum Advanced JavaReplies: 1Last Post: 08-06-2007, 11:09 PM -
Error: non-static variable height cannot be referenced from a static context at line
By fernando in forum AWT / SwingReplies: 1Last Post: 08-01-2007, 09:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks