Array List java can I add a pair of element
MyClass pair = new MyClass(2.5,3.5);
shapes.add(pair);
Array List java can I add a pair of element
MyClass pair = new MyClass(2.5,3.5);
shapes.add(pair);
Array List java can I add a pair of element
public class MyClass {
double x;
double y;
public MyClass(double x, double y) {
this.x = x;
this.y = y;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us