Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Simple Java question 1

BunkerHillBroad
BunkerHillBroad 


Suppose a program contains the declaration String s = "Java, Java, Java"; Now evaluate each of the following independent expressions. (a) s.substring(0,4)=="Java" (b) s.lastIndexOf("av") (c) s.indexOf('a',5) (d) s.indexOf("av",s.length()-10) (e) s.substring(s.lastIndexOf(s.charAt(5))) (f) s.substring (2, s.length() - 3) Attachments
Tags Clarifications

Answers

Simple Java question 1

mariobeka
mariobeka 



Open the solution file with any text editor. Attachments Screenshots
Purchase Answer