[Solved] How do I correctly implement this code segment without getting a logic error? [closed]


Shoe roshe = new Nike("roshe", 11, "black", "fashion", 129.0, false)

String literals should be enclosed in double quotes.

As for your change in size type, pass int array instead of int

int s[] = {11,12,13};
Shoe roshe = new Nike("roshe", s, "black", "fashion", 129.0, false)

or

Shoe roshe = new Nike("roshe",new int[]{11, 12, 13} , "black", "fashion", 129.0, false)

15

solved How do I correctly implement this code segment without getting a logic error? [closed]