Skip to content

Instantly share code, notes, and snippets.

@golenishchev
Created November 24, 2015 22:12
Show Gist options
  • Save golenishchev/0d947baab413e5ce46b1 to your computer and use it in GitHub Desktop.
Save golenishchev/0d947baab413e5ce46b1 to your computer and use it in GitHub Desktop.
в догонку к предыдущему коду
public class Calculator {
private int a = 4;
private int b = 5;
public static void main(String[] args) {
getResult("more text");
}
public int getSum(int a, int b) {
return a + b;
}
public static void getResult(String s) {
System.out.println("text, " + s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment