Microsoft SDK for Java

Utils.getJavaIdentifier

Determines whether the string is a valid Java identifier.

Syntax

public static boolean getJavaIdentifier( String s )

Parameters

s

The string to check.

Return Value

Returns true if the string is a valid Java identifier; otherwise, returns false.

Remarks

An identifier is an unlimited-length sequence of Java letters and digits, the first of which must be a Java letter. An identifier cannot have the same spelling (Unicode sequence) as a keyword, boolean literal, or null literal.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.