Created
November 24, 2015 22:12
-
-
Save golenishchev/0d947baab413e5ce46b1 to your computer and use it in GitHub Desktop.
в догонку к предыдущему коду
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
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