среда, 25 января 2017 г.

level08.lesson11.home07

package com.javarush.test.level08.lesson11.home07;

/* Переставь один модификатор staticПереставь один модификатор static, чтобы пример скомпилировался.*/
public class Solution
{
    public static int A = 5;
    public static int B = 2;

    public int C = A*B;
    public static int D = B*A;

    public static void main(String[] args)
    {
    }

    public  int getValue()
    {
        return D;
    }

    public int getValue2()
    {
        return C;
    }
}

Комментариев нет:

Отправить комментарий