0

Solution needed

#mcq System.out.println(ABcd.substring(2)) How the output is cd? Please explain

2nd Nov 2022, 11:02 AM
Mustakim Rahman
Mustakim Rahman - avatar
8 Respostas
+ 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.
2nd Nov 2022, 11:39 AM
Tibor Santa
Tibor Santa - avatar
+ 2
I don't know. ABcd is thus far not defined...
2nd Nov 2022, 11:15 AM
Ani Jona 🕊
Ani Jona 🕊 - avatar
+ 2
System.out.println("ABcd".substring(2));
2nd Nov 2022, 11:43 AM
JaScript
JaScript - avatar
+ 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.
2nd Nov 2022, 2:52 PM
A͢J
A͢J - avatar
+ 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.
2nd Nov 2022, 2:34 PM
Tibor Santa
Tibor Santa - avatar
0
In challenge part developers should add copy-paste option so that users can easily copy those code which they don't understand.
2nd Nov 2022, 12:04 PM
Mustakim Rahman
Mustakim Rahman - avatar
0
Developers should also add (insert picture) option in Q&A Discussion part. It will also helpul for users.
2nd Nov 2022, 12:19 PM
Mustakim Rahman
Mustakim Rahman - avatar
0
Ok
2nd Nov 2022, 3:53 PM
Asim Farheen ⭐⭐🤺👿👿
Asim  Farheen ⭐⭐🤺👿👿 - avatar