Created
July 31, 2014 18:30
-
-
Save Motoharujap/5be71e6ae4e5c07791a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level08.lesson11.home07; | |
/* Переставь один модификатор static | |
Переставь один модификатор static, чтобы пример скомпилировался. | |
*/ | |
public class Solution | |
{ | |
public 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 static int getValue() | |
{ | |
return D; | |
} | |
public int getValue2() | |
{ | |
return C; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment