Пишет, что задачу нельзя решать на JavaRush, используйте Int IDEA.
у всех теперь так или с моим кодом что-то не то?
package com.javarush.task.task05.task0510;
/*
Кошкоинициация
*/
public class Cat {
private String name = null;
private int weight;
private int age;
private String color = grey;
private String adress = null;
public void initialize(String name, int weight, int age)
{
this name = name;
this weight = weight;
this age = age;
this color = color;
}
public void initialize(String name)
{
this name = name;
this weight = weight;
this age = age;
this color = color;
}
public void initialize(String name, int age)
{
this name = name;
this weight = weight;
this age = age;
this color = color;
}
public void initialize(String color, int weight)
{
this color = color;
this weight = weight;
this age = age;
}
public void initialize(int weight, String color, String adress)
{
this color = color;
this weight = weight;
this age = age;
this adress = adress;
}
//напишите тут ваш код
}
private String color = grey;
что за grey такой? это глобальная строка или ты просто забыл добавить кавычки "grey";