I would like to browse it online.
The official Google one is always preferred.
In particular, i want to access
https://android.googlesource.com/platform/libcore/+/froyo/luni/src/main/java/java/lang/String.java
But as you can see in the list here, only gingerbread
and later releases are available.
If there is really nowhere to browse it online, attach the code stub of public String replace(CharSequence target, CharSequence replacement)
and related methods, is also appreciated.
Thanks a lot!
This has the right tag and class name: https://android.googlesource.com/platform/dalvik/+/android-2.2_r1/libcore/luni/src/main/java/java/lang/String.java.
来源:https://stackoverflow.com/questions/16559792/where-can-i-browse-the-android-2-2-froyo-source-of-java-lang-string