ya_zay4eg

level08.lesson11.home07

Jan 5th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. package com.javarush.test.level08.lesson11.home07;
  2.  
  3. /* Переставь один модификатор static
  4. Переставь один модификатор static, чтобы пример скомпилировался.
  5. */
  6.  
  7. public class Solution
  8. {
  9.     public static int A = 5;
  10.     public static int B = 2;
  11.  
  12.     public int C = A*B;
  13.     public static int D = B*A;
  14.  
  15.     public static void main(String[] args)
  16.     {
  17.     }
  18.  
  19.     public  int getValue()
  20.     {
  21.         return D;
  22.     }
  23.  
  24.     public int getValue2()
  25.     {
  26.         return C;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment