day07-常用类-ArrayList-引入和概述
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.inmind.arraylist03;
|
||||
|
||||
public class Car {
|
||||
String brand;
|
||||
double price;
|
||||
String color;
|
||||
|
||||
public Car() {
|
||||
}
|
||||
|
||||
public Car(String brand, double price, String color) {
|
||||
this.brand = brand;
|
||||
this.price = price;
|
||||
this.color = color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user