Array in one class constructor and deep copy of an array

Hello, this is an school homework task, studying over the net and i've got none to ask in my hometown or friends. only gaming wow and bf3.

This is the start of one class and i'm having troubble with it.

1. the arrays seems to be not right. (seems = is)
2. deep copy, the right array shall be one copy of the left array

[code]class shoes{
private final String brand;
private final String colour;
private final double price;
private final int minSize;
private final int[] left;
private final int[] right;

public shoes(String brand, String colour, double price, int minSize, int[] left, int[] right) {
this.brand = brand;
this.colour = colour;
this.price = price;
this.minSize = minSize;
this.left = new int[] left;
this.right = new int[] right; // thisone shall be one deep copy of the left array.

I'm not asking for one complete solution, would be nice but i've been trying to search on google for tips. and my school book are of no use either on their examples.

is there some example code or web site i could look on ?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!