Created
December 3, 2015 09:22
-
-
Save ProZhar/72eb741f318e28ed926a to your computer and use it in GitHub Desktop.
com.javarush.test.level08.lesson11.home07
This file contains 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 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; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment