answersLogoWhite

0


Best Answer

You can use the toUpperCase() method on a String to convert any String to all uppercase.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Java program to convert lowercase to uppercase?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does Java keywords are written in lowercase as well as uppercase?

it depends mostly it is written in lower case but few start with an uppercase as Java is case sensitive


What commands are used to prints text in java?

System.out.println("text"); or System.out.print("text"); Please note that Java is case sensitive, meaning you must match uppercase and lowercase exactly.


How to convert lowercase to uppercase in java?

In Java you can invoke the toUpperCase()method on a string to convert it to a new string with all upper case characters.For example, "abc".toUpperCase() returns "ABC"Likewise, the static Character.toUpperCase(char ch) method takes a single character and returns the upper-case equivalent of that character (e.g. 'a' -> 'A').


Write a program to initialize a character and print whether it is uppercase lowercase or special character in java module 1?

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"); }


What is the case for Java keywords?

uppercase


How do you convert capital string to small in Java?

To convert a String object to lowercase in Java, use the toLowerCase() method. "HELLO".toLowerCase() returns a new String: "hello".


General syntax in creating a method?

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


What is the system.out.println in java program?

The correct command is System.out.println - note the uppercase "S"! Java is case-sensitive! This command is used to send data to the standard output, by default the screen. It can be used to quickly test some program. For example, you might include the following line in your main() method: System.out.println("Hello!");


Attributes and methods of uppercase in java?

In Java toUppercase() is a method of the class String: https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#toUpperCase()


What are two main purposes of the Java compiler javac?

One of them is creating *.class from *.javaSecond is identifying syntax errors in the *.java files and intimating the programmer so that he can correct them


What do you mean by multithread program in java?

A Program in Java that spawns multiple threads is called a multithreaded program in Java.


What is an Program compilation?

That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.