これまでのところ、私のコードは次のようになります。
public class Tree {
public static void main (String[] argv) {
int serial; //create parameters
double circumference;
String species;
}
public Tree(int serial, double circumference, String species) {
String.format("Tree number %d has a circumference of %.2f and is of species %s.",
serial, circumference, species);
}
}
ツリー情報を非常に特殊な形式でdescribe()
返すメソッドを作成する方法がわかりません。String