Check for upper case

Sorry, I am new to java and wish to check whether a method name contains any uppcase characters and if it does then display a warning, can anyone offer me some sample code? thanks
[186 byte] By [bmthboya] at [2007-9-25]
# 1

1. You could use the java.lang.reflect package

TestClass test = new TestClass();

Method[] methods = test.getClass().getMethods();

for (int k = 0; k < methods.length; ++k) {

System.out.println(methods[k].getName());

}

Note: getMethods() returns only the public member methods of the Class.

2. Checkstyle: http://checkstyle.sourceforge.net/config_naming.html defining:

<module name="MethodName">

<property name="format" value="^[a-z][a-z0-9]*$"/>

</module>

attilaracza at 2007-7-15 > top of java,Enterprise & Remote Computing,Enterprise Technologies...