Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
public class Test { public static void main(String[] args) { int max = 0; max(1, 2, max); System.out.println(max); } public ststic void max( int value1, int value2, int max) { if (value1 > value2) max = value1; else max = value2; } } |
|
[code]public class Test { public static method1(int n, m){ n += m; method2(3.4); } public static int method2(int n){ if (n > 0)return 1; else if (n == 0) return 0; else if (n < 0) return -1; } }[/code] |