Hmm. Using eclipse, and on the line with the x it just says : "length cannot be resolved or is not a field"
Type: Posts; User: red7
Hmm. Using eclipse, and on the line with the x it just says : "length cannot be resolved or is not a field"
"Exception in thread "main" java.lang.Error: Unresolved compilation problem:
length cannot be resolved or is not a field
at TestClass.concat(TestClass.java:41)
at...
Wont let me compile :
public TestClass[] concat(TestClass...b1)
{
TestClass[] temp = new TestClass[b1.length+b.length]
for(int i = 0;i<=temp.length;i++)
return...
@ aussiemcgr, much thanks, understand the toString now.
@Norm
I just notice examples in my book about that.
So now I have a little problem understanding the constructor. How would I set it...
I'm having a problem with the toString method, or my code could be wrong. Heres an example:
public class TestClass
{
private TestClass[] a;
private int[] b;
public TestClass(int...b)...