Computer Science, asked by Anonymous, 3 months ago

Give the output of the following String functions:
String sc =”CLOCK”;
String st =”TIME”;
int sclen=sc.length();
String p1 = st.substring(0,2);
String p2 = sc.substring(3,sclen);
System.out.print(p1+p2);


#Don't dare to spam plz​

Answers

Answered by sara0389
2
the output will be TICK
Explaination:
Sclen = 5
p1 = TI
p2 = CK

Prints TICK

Answered by pranavgawali12395
7

Answer:

good morning have a great day ahead

Attachments:
Similar questions