Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement