Log in
Sign up for FREE
arrow_back
Library
String Arrays Worksheet
By Mickey Arnold
star
star
star
star
star
Share
share
Last updated almost 2 years ago
14 questions
Add this activity
zoom_in
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Question 1
1.
System.out.println(ray[0]); //line 1
Question 2
2.
System.out.println(ray[0].charAt(0)); //line 2
Question 3
3.
System.out.println(ray[6]); //line 3
Question 4
4.
System.out.println(ray[1]); //line 4
Question 5
5.
System.out.println(ray.length); //line 5
Question 6
6.
ray = "two two three five five six eight eight".split(" ");
System.out.println(ray[0]); //line 6
Question 7
7.
ray = "two two three five five six eight eight".split(" ");
System.out.println(ray[3/2].charAt(0)); //line 7
Question 8
8.
ray = "two two three five five six eight eight".split(" ");
System.out.println(ray[7/2]); //line 8
Question 9
9.
ray = "two two three five five six eight eight".split(" ");
System.out.println(ray[1]); //line 9
Question 10
10.
ray = "two two three five five six eight eight".split(" ");
System.out.println(ray.length); //line 10
Question 11
11.
ray = "def-527-158-926".split("\\-");
System.out.println(ray[0]); //line 11
Question 12
12.
ray = "def-527-158-926".split("\\-");
System.out.println(ray[3*1]); //line 12
Question 13
13.
ray = "def-527-158-926".split("\\-");
System.out.println(ray[2].replaceAll("[46]","#")); //line 13
Question 14
14.
ray = "def-527-158-926".split("\\-");
System.out.println(ray[1]); //line 14