uppercase
You can use the toUpperCase() method on a String to convert any String to all uppercase.
System.out.println("text"); or System.out.print("text"); Please note that Java is case sensitive, meaning you must match uppercase and lowercase exactly.
You can find a list of Java keywords in the Wikipedia article "List of Java keywords". These keywords may not be used for variables or other user-defined names.
I'll just write a function to do that, I hope the good people won't try to run it as it is.... void function() { char c = 'a'; if( c >= 'a' && c <='z' ) System.out.println("LowerCase"); else if( c>='A' && c <='Z' ) System.out.println("UpperCase"); else System.out.println("Special Character"); }
uppercase
You can use the toUpperCase() method on a String to convert any String to all uppercase.
System.out.println("text"); or System.out.print("text"); Please note that Java is case sensitive, meaning you must match uppercase and lowercase exactly.
You can find a list of Java keywords in the Wikipedia article "List of Java keywords". These keywords may not be used for variables or other user-defined names.
I'll just write a function to do that, I hope the good people won't try to run it as it is.... void function() { char c = 'a'; if( c >= 'a' && c <='z' ) System.out.println("LowerCase"); else if( c>='A' && c <='Z' ) System.out.println("UpperCase"); else System.out.println("Special Character"); }
As far as I know, keywords are part of the implementation of Java, and cannot be defined or redefined.
As of Java 1.5, there are 50 keywords defined, 48 of which are used (const and goto are unusable keywords).abstractcontinuefornewswitchassertdefaultgotopackagesynchronizedbooleandoifprivatethisbreakdoubleimplementsprotectedthrowbyteelseimportpublicthrowscaseenuminstanceofreturntransientcatchextendsintshorttrycharfinalinterfacestaticvoidclassfinallylongstrictfpvolatileconstfloatnativesuperwhile
True and false are literals(special built-in value) in java and cannot be used as keywords.
No. Keywords are not called or known as Metadata in Java
A Java method declaration will look like this:[access modifier] [static] [final] [synchronized] [return type] [method name]([parameters])Where:access modifier is exactly one of the followingpublicprotected(no text)privatestatic, final, and synchronized are all optional.return type is exactly one of the followingvoidThe name of a Java primitiveThe name of a Java classmethod name is a valid Java identifier which must conform to all of the following rulesStarts with a lowercase letter (a-z), an uppercase letter (A-Z), a dollar sign ($), or an underscore (_)After the first character, may be a digit(0-9), a lowercase letter (a-z), an uppercase letter (A-Z), a dollar sign ($), or an underscore (_)May not be one of the Java keywordsMay not be one of the Java literals: true, false, or nullparameters is a comma-separated list of [type] [identifier] pairs, where:type is a valid Java primitive or class nameidentifier is a Java identifier, which conforms to the same rules as method name
There is 48 reserved keywords currently defined in the java language. These keywords, combined with the syntax of the operators and separators,form the definition of the java language. these keywords can't be used as names for a variable,class or method. (chandramohan singh)
There is no scanf in Java. It is one of the keywords used in C Programming language