Отсутствует объявление класса, интерфейса или enum-а.
файл com/javarush/task/task05/task0510/Cat.java, строка 57, позиция 1312 - как понять?что я не понял?
И посмотрите, заодно код, правильно ли там все?
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
//напишите тут ваш код
private String name;
private int age;
private int weight;
private String address;
private String color;
//1 требование
public void initialize (String name, int age, int weight, String color){
this.name = name;
this.age = 5;
this.weight = 3;
this.color = "black";
}
//2 требование
public void initialize (String name, int weight, int age, String color){
this.name = name;
this.weight = weight;
this.age = age;
this.color = "white";
}
//3 требование
public void initialize (String name, int age, int weight, String color){
this.name = name;
this.age = age;
this.weight = 6;
this.color = "mix";
}
//4 требование
public void initialize (int weight, String color, int age){
this.weight = weight;
this.color = color;
this.age = 6;
}
//5 требование
public void initialize (int weight, String color, String address, int age){
this.weight = weight;
this.color = color;
this.address = address;
this.age = 3;
}
}
public static void main(String[] args) {
}
}