Skip to content

alkabharti/Strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strings

a) Find ASCII value of a character.

a) char ch='P'
      int ascii=(int)ch;
      System.out.println(ascii);

b) Convert case of a character in a string.

b) int ln = str.length();  
    for (int i=0; i<ln; i++) 
    { 
        if (str[i]>='a' && str[i]<='z') 
        //Convert lowercase to uppercase 
            str[i] = str[i] - 32; 
        else if(str[i]>='A' && str[i]<='Z') 
        //Convert uppercase to lowercase 
            str[i] = str[i] + 32; 
    } 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages