String convert uppercase my name

public static void main(String[] args) {
// TODO Auto-generated method stub
String name= “hemalatha”;
System.out.println(name.toUpperCase());
}

out put – HEMALATHA

—————–

public static void main(String[] args) {


This content originally appeared on DEV Community and was authored by hema latha

public static void main(String[] args) {
        // TODO Auto-generated method stub
   String name= "hemalatha";
   System.out.println(name.toUpperCase());
    }

out put - HEMALATHA


-----------------

public static void main(String[] args) {
        // TODO Auto-generated method stub
   String name= "hemalatha";
   //System.out.println(name.toUpperCase());
    for(int i=0; i<name.length(); i++)
    {
        char ch = name.charAt(i);
        {
        System.out.print((char)(ch-32));
    }



    }}}

out put --  HEMALATHA





This content originally appeared on DEV Community and was authored by hema latha


Print Share Comment Cite Upload Translate Updates
APA

hema latha | Sciencx (2025-03-11T16:34:42+00:00) String convert uppercase my name. Retrieved from https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/

MLA
" » String convert uppercase my name." hema latha | Sciencx - Tuesday March 11, 2025, https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/
HARVARD
hema latha | Sciencx Tuesday March 11, 2025 » String convert uppercase my name., viewed ,<https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/>
VANCOUVER
hema latha | Sciencx - » String convert uppercase my name. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/
CHICAGO
" » String convert uppercase my name." hema latha | Sciencx - Accessed . https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/
IEEE
" » String convert uppercase my name." hema latha | Sciencx [Online]. Available: https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/. [Accessed: ]
rf:citation
» String convert uppercase my name | hema latha | Sciencx | https://www.scien.cx/2025/03/11/string-convert-uppercase-my-name/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.