Skip to content

Instantly share code, notes, and snippets.

@edinak1
Created October 17, 2015 15:24
Show Gist options
  • Save edinak1/c3c1a869660badbd83a2 to your computer and use it in GitHub Desktop.
Save edinak1/c3c1a869660badbd83a2 to your computer and use it in GitHub Desktop.
package numbers;
public class Fourth {
public static void main(String[] args) {
String mjQuote="I'm failed over and over and over again in my life that is why I succeed!";
int lastNamber=mjQuote.length()-1;
char lastSimvol=mjQuote.charAt(lastNamber);
System.out.println(lastSimvol);
//Attention!!!Program works only for strings that have one or more symbol!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment