0
Solution needed
#mcq System.out.println(ABcd.substring(2)) How the output is cd? Please explain
8 Answers
+ 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
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
System.out.println("ABcd".substring(2));
+ 1
Mustakim Rahman you can send your suggestions to [email protected] 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
Hot today
I have made a calculator in which my % (Percentage) not work correctly for 100%50 or 100%20.
3 Votes
Python palindrome challenge.
1 Votes
Java
0 Votes
Number of Ones ( C++ ) question!
1 Votes