Results 1 to 2 of 2
Thread: Trouble executing a file!
- 02-26-2012, 08:54 AM #1
Member
- Join Date
- Feb 2012
- Posts
- 23
- Rep Power
- 0
Trouble executing a file!
I am trying to read characters from the console and check for the uppercase letters in the input..
Check the following code:
It is compiling fine , but giving the following error:Java Code:import java.io.*; class CharacterRead{ public static char main(String args[]) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char ch; System.out.println("Enter your name:"); ch=(char) br.read(); for(int i = 0 ; i<8; i++) { System.out.println(Character.isUpperCase(ch)); } return(ch); } }
Exception in thread "main" java.lang.NoSuchMethodError: main
Can anyone tell me whats wrong with this code.
- 02-26-2012, 09:29 AM #2
Member
- Join Date
- Oct 2011
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
Making and executing jar file using eclipse
By Shabber102 in forum New To JavaReplies: 0Last Post: 02-06-2012, 01:18 PM -
Problem executing jar file
By gio123bg in forum New To JavaReplies: 4Last Post: 06-30-2009, 11:37 AM -
Problems executing jar file outside of netbeans
By 2potatocakes in forum New To JavaReplies: 4Last Post: 04-29-2009, 09:53 PM -
executing the java file
By TheBayWatchMan in forum New To JavaReplies: 4Last Post: 01-12-2008, 09:31 AM -
Executing a jar file
By peiceonly in forum New To JavaReplies: 2Last Post: 04-06-2007, 02:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks