maerskssc
asked on
Length Sintaxis in Java
What is the sintaxis for the function lenght in Java, could you pls provide an example. What I really need is to determine how many characters are in variable.Tks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
import java.lang.reflection;
do this function
public void displayClassFieldName(Clas
{
Field[] fields = theClass.getDeclaredFields
for(int i = 0; i < fields.length ; i++ )
{
String fieldName = fields[i].getName();
System.out.println(fieldNa
}
}
call like this:
displayClassFieldName(myOb
Cheers!