0
Solution needed
#mcq System.out.println(ABcd.substring(2)) How the output is cd? Please explain
8 Réponses
+ 4
If you put ABcd in quotation marks, then it makes sense.
You can search the JDK documentation to understand how the standard library works.
https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html
The number argument, is the begin index.
+ 2
I don't know. ABcd is thus far not defined...
+ 2
System.out.println("ABcd".substring(2));
+ 2
Mustakim Rahman
In Challenge question doesn't make sense of copy paste instead there should be explanation but as challenge questions were posted by community member so I think that is why not available.
For the image in QA you can do one thing take screenshot, upload image in post and then share the post link with question.
+ 1
Mustakim Rahman you can send your suggestions to info@sololearn.com or use the feedback menu in the mobile app. They most likely won't read this forum.
0
In challenge part developers should add copy-paste option so that users can easily copy those code which they don't understand.
0
Developers should also add (insert picture) option in Q&A Discussion part.
It will also helpul for users.
0
Ok