Uppercase Characters in Java

Ads
 

Uppercase Characters in Java

I want to know how to UpperCase Characters in Title useing a java code...?

View Answers

April 12, 2012 at 11:54 AM

Use toUpperCase() method to convert the string in uppercase letters.

class UppercaseString 
{
    public static void main(String[] args) 
    {
        String st="Hello";
        String upperSt=st.toUpperCase();
        System.out.println(upperSt);
    }
}

import javax.swing.*;

class UppercaseString 
{
    public static void main(String[] args) 
    {
        JFrame f=new JFrame();
        String st="Hello";
        String upperSt=st.toUpperCase();
        f.setTitle(upperSt);
        f.setVisible(true);
        f.add(new JLabel("Welcome"));
        f.setSize(300,100);
    }
}

Ads









Related Tutorials/Questions & Answers:
Uppercase Characters in Java
Uppercase Characters in Java  I want to know how to UpperCase Characters in Title useing a java code...?   Use toUpperCase() method to convert the string in uppercase letters. class UppercaseString { public static
C String uppercase
in to uppercase. In the given example, we have define a string in lowercase characters. Therefore, in order to convert the characters of string in uppercase (A to Z), we... C String uppercase      
Advertisements
Count characters from text file in Java
Count characters from text file in Java  At the "Count chracters fro mtext file in Java". I tried to run the code, but the error at the line have... is a java code that count the occurrence of each character from text file. import
writing characters
writing characters  how to write a group of characters to a string ... i mean for writing single character using charAt in java
Java count characters from file
Java count characters from file In this section, you will learn how to count characters from the file. Description of code: Firstly, we have used FileReader and BufferedReader class to read the file 'data.txt' and stored the data
Protect Special Characters.
Protect Special Characters.  How To Protect Special Characters in Query String
ModuleNotFoundError: No module named 'characters'
ModuleNotFoundError: No module named 'characters'  Hi, My Python... 'characters' How to remove the ModuleNotFoundError: No module named 'characters' error? Thanks   Hi, In your python environment you
remove special characters iphone
remove special characters iphone  remove special characters iphone   Remove special characters iphone from Password NSString *outputString = [passwordString stringByReplacingOccurrencesOfString:@"%" withString
PDF Generation for unicode characters
PDF Generation for unicode characters  Hi, How a PDF file having unicode characters is generated in JSP
Count number of characters in a column.
Count number of characters in a column.  I just need you suggestions. Am from Biology Back ground. I just need to find out number of characters... to count characters in 1st, 2nd, 3rd columns seperatly and also print flase if i
regular expression for special characters
regular expression for special characters  How to find out regular expression for special characters
replace special characters in html
replace special characters in html  How can i replace the special characters in HTML?   Special Character in HTML HTML has a long list of special characters symbol that can be used anywhere throughout the HTML Code
Removing characters from a string
Removing characters from a string  Removing characters from a string   Example: public class CharReplace{ public static void main(String []args){ String str="Hello 123.you are At 3456"; String
How to Remove Repeated Characters from the String?
How to Remove Repeated Characters from the String?  Hi, I trying to develop an application which will remove the repeated characters from... the example of how to remove repeated characters from the string. Please visit
ModuleNotFoundError: No module named 'control-characters'
ModuleNotFoundError: No module named 'control-characters'  Hi, My... named 'control-characters' How to remove the ModuleNotFoundError: No module named 'control-characters' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'control-characters'
ModuleNotFoundError: No module named 'control-characters'  Hi, My... named 'control-characters' How to remove the ModuleNotFoundError: No module named 'control-characters' error? Thanks   Hi, In your
Remove duplicate characters from the string
Remove duplicate characters from the string In this tutorial, you will learn how to remove duplicate characters from the string. Java has provide several methods to examine the content of string, finding characters or substrings
Stripping of unwanted characters from string
Stripping of unwanted characters from string  how to strip off unwanted characters from a string   Hi Friend, Try this: public class StripCharacters { public String strip(String s) { String st
Java String
Java String       In this section, you will learn about the java string. Java String is a set of characters such as the string "Hello". It is a combination of H, e, l, l, o
problems in parsing the xml with the special characters
problems in parsing the xml with the special characters  Hi, I have a problem, in while parsing the xml with special characters apstrophe('). I am getting the exception Caused by: javax.xml.transform.TransformerException
how can i remove newline characters and tabs
how can i remove newline characters and tabs   how can i remove newline characters and tabs ? but i wont to using GUI .please help
Escaping Special Characters in a Pattern
Escaping Special Characters in a Pattern   ... characters from the given string or text. Here, you can learn the way of detecting all special characters present in the given string. Program Result
MySQL replace all non alphanumeric characters
MySQL replace all non alphanumeric characters  Hi, How to replace all non alphanumeric characters in MySQL? Thanks
java
java  1) Take a string as input from command line and find the following: a) Length of the string b) number of vowels in it c) number of characters in it d) number of digits in it e) how many uppercase letters are present and how
how to get string between two characters
how to get string between two characters  hgow to get string from between two characters. ex:[email protected] from the above word i want a string between characters . and @ send the required method and give better example
C String lowercase
. You can see in the given example, we have define a string in uppercase characters. Therefore, in order to convert the characters in lowercase (a to z), we have... characters.  Here is the code: STRINGLO.C
input fields to reject all inconsistent characters in webconfig
input fields to reject all inconsistent characters in webconfig  I would like to write this statement in the webconfig as specified by my client. The purpose is to set the input fields to reject all in-consistent characters
Java Number Format
Java Number Format       In programming languages, a pattern of special characters is used to specify the format of the number. In java this is achieved by the java.text.NumberFormat
incrementing characters
count characters
unicode characters

Ads