Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Motoharujap/5be71e6ae4e5c07791a0 to your computer and use it in GitHub Desktop.
Save Motoharujap/5be71e6ae4e5c07791a0 to your computer and use it in GitHub Desktop.
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