Ok. I'm new to this site and I kinda just watch all the post to see if something would help me but its not happening. So I decided to sign up and stop lurking.
So heres my dilemma, my prof. gave us a assignment were we have to work with arrays. A friend of mines was telling me to use a StringBuilder class because it so much easier (which it is) When showing my prof. he told me thats not what he wants because we haven't learned that yet :mad:
**So my question is, how do I turn "" System.out.println((new StringBuilder()) .append("The list capacity is ").append(cap).toString()); ""
**back into System.out.println("the list capacity is " + cap; with it making sense :confused:
I did my whole program using a StringBuilder just for it to be wrong. I'm not trying to ask my friend because I feel bad :(
My code:
import java.io.*;
import java.util.Scanner;
public class JambaList {
private Jamba list[];
private int cap;
private int size;
private static Scanner console;
static {
console = new Scanner(System.in);
}
public JambaList() {
cap = 10;
size = 0;
list = new Jamba[cap];
}
public void printCapcity() {
System.out.println((new StringBuilder())
.append("The list capacity is ").append(cap).toString());
}
public void printSize() {
System.out.println((new StringBuilder()).append("There are ").append(
size).append(" monsters in the list").toString());
}
If anyone could help that would very much appreciated.

