Quelle est la taille de la string résultant de l'appel de String.substring? est-ce que le character correspondant à l'index passé en deuxième argument fait parti de la réponse
Created
October 5, 2023 09:46
-
-
Save nherbaut/23e89686ba8a267cfc0227dce63f6303 to your computer and use it in GitHub Desktop.
L2.3.2 String.substring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringSubString{ | |
public static void main(String... args){ | |
String original = "sorbonnepantheonMIASHS"; | |
String extracted = original.substring(4,7); | |
System.out.println(extracted); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
execute me on https://java.miage.dev/?gistId=23e89686ba8a267cfc0227dce63f6303