public class CategoryObservationType extends CategoryObservation
{
private String code;
private String name;
private String categories;
private int catlimit = 1;
String[] Categories;
public CategoryObservationType(String name, String code)
{
this.name = name;
this.code = code;
Categories[catlimit] = new Categories(name,code);
catlimit ++;
}
public String getCode()
{
return code;
}
public String getName()
{
return name;
}
public String setName(String name)
{
this.name = name;
return name;
}
public String setCode(String code)
{
this.code = code;
return code;
}
}
私は新しいですが、私は出力エラーを得ることができませんでしたシンボルカテゴリを見つけることができません。カテゴリ[catlimit] = newカテゴリ(名前、コード)。シンボルが見つかりません。Javaで定義されていますが、
クラス 'カテゴリ 'の定義はありません。 [最小限の、完全で検証可能な例](http://stackoverflow.com/help/mcve)を投稿してください。 – MikeCAT
あなたは 'String Categories'を持っています。それはクラスではなく、配列ではありません。 –
[Coundltt reproduce](http://melpon.org/wandbox/permlink/HOpmflDgP4RZpTWM)。 – MikeCAT