Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Given that String -- str has been initialized- to get a copy of str -0.docx

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige

Hier ansehen

1 von 1 Anzeige

Given that String -- str has been initialized- to get a copy of str -0.docx

Herunterladen, um offline zu lesen

Given that String [] str has been initialized, to get a copy of str [0] with all characters converted to upper case, use the following statement str [0]. to UpperCase (); str. to UpperCase (); str. uppercase (); str |0|. upper case (); Which of the following for loops is valid, gii1 = 0; 1
Solution
25) Answer: a
String[] names={\"abc\",\"def\",\"ghi\",\"jkl\"};
for(int i=0;i<names.length;i++)
System.out.println(names[i].length());
26) Answer:C
int[][] ragged2 = new int[5][];
ragged arrays have different sizes of dimensions.
.

Given that String [] str has been initialized, to get a copy of str [0] with all characters converted to upper case, use the following statement str [0]. to UpperCase (); str. to UpperCase (); str. uppercase (); str |0|. upper case (); Which of the following for loops is valid, gii1 = 0; 1
Solution
25) Answer: a
String[] names={\"abc\",\"def\",\"ghi\",\"jkl\"};
for(int i=0;i<names.length;i++)
System.out.println(names[i].length());
26) Answer:C
int[][] ragged2 = new int[5][];
ragged arrays have different sizes of dimensions.
.

Anzeige
Anzeige

Weitere Verwandte Inhalte

Weitere von rtodd751 (20)

Aktuellste (20)

Anzeige

Given that String -- str has been initialized- to get a copy of str -0.docx

  1. 1. Given that String [] str has been initialized, to get a copy of str [0] with all characters converted to upper case, use the following statement str [0]. to UpperCase (); str. to UpperCase (); str. uppercase (); str |0|. upper case (); Which of the following for loops is valid, gii1 = 0; 1 Solution 25) Answer: a String[] names={"abc","def","ghi","jkl"}; for(int i=0;i<names.length;i++) System.out.println(names[i].length()); 26) Answer:C int[][] ragged2 = new int[5][]; ragged arrays have different sizes of dimensions.

×