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
![void main(String[] args) \{ Scanner kbd = new scanner((System. in)); int []](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f0159dcfc30_20566f0159d6d2b6.jpg)
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
Get step-by-step solutions from verified subject matter experts
