output is 1
but how
Attachments:

Answers
Answered by
1
Answer:
It checks whether that index value 4 of any character is available or not..In that word " program " r is the 4th index value .so it return 1..In java 1 means true (present), 0 means false(not present)...
Similar questions