Answer:
public static int greaterThanInt(int n){
return n+10;
}
Explanation:
This is a very simple method in Java. it will accept an argument which is an integer n and return n+10 since the question requires that an arbitrary integer greater than n be returned adding any int value to n will make it greater than n.
A complete java program calling the method is given below:
<em>import java.util.Scanner;</em>
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Please enter an integer");</em>
<em> int n = in.nextInt();</em>
<em> int greaterInt = greaterThanInt(n);</em>
<em> System.out.println("You entered "+n+", "+greaterInt+" is larger than it");</em>
<em> }</em>
<em> public static int greaterThanInt(int n){</em>
<em> return n+10;</em>
<em> }</em>
<em>}</em>