Computer Science, asked by uniyala84, 1 year ago

Another question output based
String arr[] = { "DELHI ", "CHENNAI", "MUMBAI", "LUCKNOW", "JAIPUR" };
System.Out.println( arr[0].length > arr[3].length());
System.Out.println ( arr[4].substring(0,3));

Answers

Answered by siddhartharao77
5
The output is:

(1) Error 

Reasons:

(a) The symbol cannot be found - Out.

(b) It should be arr[0].length() > arr[3].length().



(2) JAI.

In this, the start index starts from 0. and the end index starts from - 1.



Hope this helps!

uniyala84: Thanks
AleenaAnnaRobin: The question typed is wrong
AleenaAnnaRobin: It is arr[0].lengthy()>arr[3].lengthy()
siddhartharao77: It is not lengthy() bro. Length()
uniyala84: Excuse me haha it's correct
AleenaAnnaRobin: Oh ..that's because of auto correct in keyboard
AleenaAnnaRobin: It's length ()
uniyala84: Okay
Answered by AleenaAnnaRobin
4
false
JAI
pls mark brainliest

uniyala84: Thanks
uniyala84: And it's not lengthy()
Similar questions