<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 永鹏 徐</title>
    <description>The latest articles on DEV Community by 永鹏 徐 (@asenxu).</description>
    <link>https://dev.to/asenxu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F858026%2F4fdfa9e9-a334-493a-9e0f-a24b561ece9d.png</url>
      <title>DEV Community: 永鹏 徐</title>
      <link>https://dev.to/asenxu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asenxu"/>
    <language>en</language>
    <item>
      <title>How to reverse a string in java</title>
      <dc:creator>永鹏 徐</dc:creator>
      <pubDate>Thu, 05 May 2022 09:32:28 +0000</pubDate>
      <link>https://dev.to/asenxu/how-to-reverse-a-string-in-java-597d</link>
      <guid>https://dev.to/asenxu/how-to-reverse-a-string-in-java-597d</guid>
      <description>&lt;p&gt;mark:reverse a string by build-in function chartAt&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;private String reverseString2(String str) {
    if (str == null) {
        return null;
    }
    String result = "";
    for (int i = str.length() - 1; i &amp;gt;= 0; i--) {
        result = result + str.charAt(i);
    }
    return result;
}

public void test(){
    System.out.println(reverseString2("abcd"));
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;also can see &lt;a href="https://www.asenview.com/reverse-a-string-in-java/"&gt;reverse-a-string-in-java&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>java</category>
      <category>develpor</category>
    </item>
  </channel>
</rss>
