Created
December 7, 2015 09:18
-
-
Save ProZhar/f97b98da0ad3f146d644 to your computer and use it in GitHub Desktop.
com.javarush.test.level10.lesson11.home07
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.level10.lesson11.home07; | |
| /* Расставьте минимум static-ов | |
| Расставьте как можно меньше модификаторов static так, чтобы пример скомпилировался. | |
| */ | |
| public class Solution | |
| { | |
| public int A = 5; | |
| public static int B = 5; | |
| public static int C = 5; | |
| public static int D = 5; | |
| public static void main(String[] args) | |
| { | |
| Solution solution = new Solution(); | |
| solution.A = 5; | |
| solution.B = 5 * B; | |
| solution.C = 5 * C * D; | |
| Solution.D = 5 * D * C; | |
| Solution.D = 5; | |
| } | |
| public int getA() | |
| { | |
| return A; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment