Question: Question 9 output:- import java.util.scanner; public class main { public static void main(String[] args) { Scanner kbd = new scanner((System. in)); int [] n1={20,30}; int

 Question 9 output:- import java.util.scanner; public class main \{ public static
void main(String[] args) \{ Scanner kbd = new scanner((System. in)); int []

Question 9 output:- import java.util.scanner; public class main \{ public static void main(String[] args) \{ Scanner kbd = new scanner((System. in)); int [] n1=\{20,30\}; int n2=200; change(n1,n2); System.out.print(n1[1]+" "+n2); \} public static void change(int [] x, int y) { x [1]=500; System.out.print (n1[1]+""+n2); \begin{tabular}{l} \} \\ public static void change(int [],int y ) \\ \{ \\ y[1]=500; \\ y=100; \\ 3200 \\ 500 \\ 2030 \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!