Created
December 4, 2015 18:11
-
-
Save Yur-ok/176bf9e4fed4bc2f1611 to your computer and use it in GitHub Desktop.
Находим послдений символ в строке, в не зависимости от того как меняется сама строка.
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
package SecondProgramm; | |
/** | |
* Created by Юрий on 05.12.2015. | |
*/ | |
public class LastSymbol { | |
public static void main(String[] args) { | |
String mjQuote = "I'm failed over and over and over again in my life and that is why I succeed!"; | |
System.out.println(mjQuote.charAt(mjQuote.length()-1)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment