how to append without using buffer or append method?
<pre><code>/*
 * Compares user input and checks whether they are anagrams
 * 
 */

import java.util.Scanner;


public class Anagram
{
  public static void main(String[] args)
  {

Scanner sc = new Scanner(System.in);
System.out.print("Enter first sentence: ");
String s1 = sc.nextLine();
System.out.print("Enter second sentence: ");
String s2 = sc.nextLine();

s1.toLowerCase();
String new1 = "";
for( char ch = 'a'; ch &lt;= 'z'; ch++){
  int i;
  for(i = 0; i &lt;s1.length(); i++){
    if(ch == s1.charAt(i)){
      System.out.print(ch + " are the letters of " + s1 + " in order ");
      break;
    }
  }
}
s2.toLowerCase();
String new2 = new String();
for( char ch2 = 'a'; ch2 &lt;= 'z'; ch2++){
  int i2;
  for(i2 = 0; i2 &lt;s2.length(); i2++){
    if(ch2 == s2.charAt(i2)){
      System.out.print(ch2 + " are the letters of " + s2 + " in order ");
      break;
    }
  }
}
  }
}
</code></pre>

<p>In reference to my question before to which this is the proper way of doing the homework everything works fine except im having trouble creating a new string and passing all the chars to the new string. However this has to be done without using stringbuffer or append() is that possible?</p>
