-2

Possible Duplicate:
Detecting words that start with an accented uppercase using regular expressions

in java ,how to test if a string begins with an uppercase letter accented ,like this Ëfdk,Ä...

do you have some ideas

Community
  • 1
  • 1
user651584
  • 49
  • 1
  • 7
  • 1
    please don't post the same question twice, especially when you have a lot of good information in the responses to your first question. – Mat Mar 27 '11 at 10:11
  • You posted the same question yesterday. from the looks of things http://stackoverflow.com/questions/5442875/detecting-words-that-start-with-an-accented-uppercase-using-regular-expressions – Kevin D Mar 27 '11 at 10:12

2 Answers2

0

You can use Character.isUppercase() method.

public class MainClass {
  public static void main(String args[]) {
     System.out.println(Character.isUpperCase('C'));
  }
}

See Javadoc

Sandro Munda
  • 39,921
  • 24
  • 98
  • 123
0
   String s="Ëfdk,Ä";
   char[] a = s.toCharArray();
   for (int i=0;i<a.length;i++)
   {
       if ( a[i] != null && Character.isUpperCase(a[i]))
           System.out.println(a[i]);
   }
Dead Programmer
  • 12,427
  • 23
  • 80
  • 112