Object Dereferencing. [resolved by VirtuallyVB]
Anybody know what that is? Im not too sure myself. The code below works great. But the code under it at compile time i get char cannot be dereferenced. what does that mean?
Code:
try {
StringBuffer sb = new StringBuffer();
for(int i = 0; i < c.length; ++i){
sb.append(c[i]);
jta.setText(new String(sb));
Thread.sleep(75);
}
}catch(Exception e){System.err.println(e);}
// cannot be derefrenced
Code:
String s = new String(c);
for(int i = 0; i < c.length; ++i){
jta.setText(new String(s.charAt(i).toString()));
Thread.sleep(75);
}
What is Object Dereferencing?
this is all nice but you still haven't explained object deferencing is.