<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com java:lang:string</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-06-21T05:25:33+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:10:51+02:00</dc:date>
        <title>charAt</title>
        <link>https://code-reference.com/java/lang/string/charat?rev=1365581451&amp;do=diff</link>
        <description>charAt(int index)


description of charAt

returns char value at the specified index of  string.

example of charAt in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;test 1234&quot;;
        char chr;
        
        chr = str.charAt(1);
        
        System.out.println(chr+&quot; is the 2 char&quot;);
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:05+02:00</dc:date>
        <title>replace</title>
        <link>https://code-reference.com/java/lang/string/replace?rev=1708042325&amp;do=diff</link>
        <description>public String replace(CharSequence target, CharSequence replacement)


description of replace

this method is used to replace a char Sequence

example of replace in java


package replace;

public class ReplaceString {

    public static void main(String[] args) {

        String str = &quot;Hello&quot;;
    
        str = str.replace(&quot;el&quot;, &quot;xx&quot;);
        System.out.println(&quot;String after replacement :&quot;+  str );
    
    
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T08:50:47+02:00</dc:date>
        <title>toCharArray</title>
        <link>https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff</link>
        <description>public char[] toCharArray()


description of toCharArray()

converts a string to a new character array

example of toCharArray in java


package codereferececomjava;

public class CodeRefereceComJava {


    public static void main(String[] args) {
        String str = &quot;some Text&quot;;
        char[] text;
       
        
        System.out.println(str); // print the String

        text = str.toCharArray();
        for (int i = 0; i &lt;= text.length - 1; i++) {
            
        System.out.printl…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:11:06+02:00</dc:date>
        <title>toLowerCase</title>
        <link>https://code-reference.com/java/lang/string/tolowercase?rev=1365581466&amp;do=diff</link>
        <description>toLowerCase()
toLowerCase(locale);




description of toLowerCase

returns the String, converted to lowerspace.

example of toLowerCase in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;TEST 1234&quot;;
        
        str = str.toLowerCase();
        // str = str.toLowerCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese
        
        System.out.println(str+&quot; in lowercase&quot;);
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:11:22+02:00</dc:date>
        <title>toUpperCase</title>
        <link>https://code-reference.com/java/lang/string/touppercase?rev=1365581482&amp;do=diff</link>
        <description>toUpperCase()
toUpperCase(locale)


description of toUpperCase

returns the String, converted to uppercase.

example of toUpperCase in java



package lang;

public class Lang {

    public static void main(String[] args) {
        
        String str = &quot;test 1234&quot;;
        
        str = str.toUpperCase();
        // str = str.toUpperCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese
        
        System.out.println(str+&quot; in uppercase&quot;);
    }
}</description>
    </item>
</rdf:RDF>
