Embed presentation
Download to read offline
![Write the java statement that should appear after the comments. (After the first in Blank 1 and
after the second in Blank 2.) public class Test { public static void main (String[] args) { int i = 8
; int j = 10 ; // Fill in statement to invoke the sum method and display sum of i and j . p public
static int sum(int i, int j ) { / / Fill in the code to return the sum of i and j . Blank # 1 Blank # 2](https://image.slidesharecdn.com/writethejavastatementthatshouldappearafterthecomments-after-230315042827-36e31f99/75/Write-the-java-statement-that-should-appear-after-the-comments-After-pdf-1-2048.jpg)
The document asks for Java code to fill in two blanks in a method that sums two integers. It specifies that the code should invoke the sum method and display the sum of the integers i and j. Additionally, it requests code to return the sum of i and j within the sum method.
![Write the java statement that should appear after the comments. (After the first in Blank 1 and
after the second in Blank 2.) public class Test { public static void main (String[] args) { int i = 8
; int j = 10 ; // Fill in statement to invoke the sum method and display sum of i and j . p public
static int sum(int i, int j ) { / / Fill in the code to return the sum of i and j . Blank # 1 Blank # 2](https://image.slidesharecdn.com/writethejavastatementthatshouldappearafterthecomments-after-230315042827-36e31f99/75/Write-the-java-statement-that-should-appear-after-the-comments-After-pdf-1-2048.jpg)