check last character of string java
Java
public class Test {
public static void main(String args[]) {
String string = args[0];
System.out.println("last character: " +
string.substring(string.length() - 1));
}
}String str = "India";
System.out.println("last char = " + str.charAt(str.length() - 1));
Also in Java:
- Title
- java singleton
- Category
- Java
- Title
- java linked list functions
- Category
- Java
- Title
- capcitor FERR_CLEARTEXT_NOT_PERMITTED
- Category
- Java
- Title
- how to stop a void java
- Category
- Java
- Title
- how to create an abstract method in java
- Category
- Java
- Title
- check if a string is a substring of another string java
- Category
- Java
- Title
- print out value java
- Category
- Java
- Title
- java final modifier on method
- Category
- Java
- Title
- double to string java
- Category
- Java
- Title
- java split for multiple characters
- Category
- Java
- Title
- math.pow java
- Category
- Java
- Title
- java last element in array
- Category
- Java
- Title
- kotlin jsonobject get nested
- Category
- Java
- Title
- online money transfer andhra bank
- Category
- Java
- Title
- biginteger in java
- Category
- Java
- Title
- how to create a 2d arraylist java
- Category
- Java
- Title
- java double 2 decimal
- Category
- Java
- Title
- java how to make a string lowercase
- Category
- Java
- Title
- in java how to convert string to integer
- Category
- Java
- Title
- java random numbers in specific range
- Category
- Java
- Title
- java how to change the length of an array
- Category
- Java
- Title
- java script to detect and launch all browsers
- Category
- Java
- Title
- compile java
- Category
- Java
- Title
- Java nested array hashcode
- Category
- Java
- Title
- java hashtable
- Category
- Java
- Title
- android java how to stop users fromgoing back too much
- Category
- Java
- Title
- make a commet in java
- Category
- Java
- Title
- how to add strings together
- Category
- Java
- Title
- javafx textarea size
- Category
- Java
- Title
- java new string with values
- Category
- Java
- Title
- java script print date in YYYY-MM-DD HH:MM:SS format
- Category
- Java
- Title
- how to create an array in java
- Category
- Java
- Title
- javafx fill tableview with data
- Category
- Java
- Title
- nth prime number java
- Category
- Java
- Title
- processing sound library
- Category
- Java
- Title
- parse string to int java
- Category
- Java
- Title
- java android development find element by id
- Category
- Java
- Title
- fibonacci sequence in java recursion
- Category
- Java
- Title
- how to convert char to uppercase java
- Category
- Java
- Title
- how to make a fixed size array in java
- Category
- Java
- Title
- java concatenate arrays
- Category
- Java
- Title
- immagini java
- Category
- Java
- Title
- iterate over map keys java
- Category
- Java
- Title
- java methods
- Category
- Java
- Title
- spigot custom mob
- Category
- Java
- Title
- how to use an abstract class in java
- Category
- Java
- Title
- countdown timer with seekbar
- Category
- Java
- Title
- web app runtime for java
- Category
- Java
- Title
- string length in java
- Category
- Java
- Title
- add a value to a list java in java hashmap
- Category
- Java
- Title
- java string contains char
- Category
- Java
- Title
- install java debian 8
- Category
- Java
- Title
- how to create a linked list in java
- Category
- Java
- Title
- reentrantreadwritelock java
- Category
- Java
- Title
- how to use the this keyword in java
- Category
- Java
- Title
- android how to split string
- Category
- Java
- Title
- round no in java
- Category
- Java
- Title
- java insert array
- Category
- Java
- Title
- add one character to string java
- Category
- Java
- Title
- enum with numbers java
- Category
- Java
- Title
- has places api got deprecated???
- Category
- Java
- Title
- math minimum java
- Category
- Java
- Title
- make recycler view non scrollable
- Category
- Java
- Title
- java shuffle list
- Category
- Java
- Title
- java 8 iterating and manipulating list
- Category
- Java
- Title
- java public static void main
- Category
- Java
- Title
- working with buttons in applet java
- Category
- Java
- Title
- java collapse string array
- Category
- Java
- Title
- java string to char array
- Category
- Java
- Title
- map with insertion order preserved java
- Category
- Java
- Title
- how to reverse a list in java
- Category
- Java
- Title
- read a file in java and store as integer array using buffered reader
- Category
- Java
- Title
- java method
- Category
- Java
- Title
- difference between java and javascript
- Category
- Java
- Title
- convert every character in string to arraylist jva
- Category
- Java
- Title
- String array into LinkedList java
- Category
- Java
- Title
- java exceptions for catch
- Category
- Java
- Title
- how to draw a triangle in java
- Category
- Java
- Title
- java windowbuilder full screen
- Category
- Java
- Title
- jtable fill panel
- Category
- Java
- Title
- java swing button on click
- Category
- Java
- Title
- testing the web layer without authentication spring
- Category
- Java
- Title
- even or odd in java
- Category
- Java
- Title
- how to add java_home in mac
- Category
- Java
- Title
- change activity main drawer items text color programmatically android
- Category
- Java
- Title
- write an infinite loop java
- Category
- Java
- Title
- maximum arrays size in java
- Category
- Java
- Title
- Category
- Java
- Title
- java console write
- Category
- Java
- Title
- java lambda list of objects cast
- Category
- Java
- Title
- sort a map based on keys and values using java 8
- Category
- Java
- Title
- import java.io.serializable
- Category
- Java
- Title
- java convert a set to array
- Category
- Java
- Title
- convert string into unicode java
- Category
- Java
- Title
- Java app development
- Category
- Java
- Title
- compile java to jar in mac
- Category
- Java
- Title
- tostring() java example
- Category
- Java
- Title
- Android recycleView
- Category
- Java
- Title
- programmation android avoir acces à la liste des intents de partage
- Category
- Java
- Title
- has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 55.0
- Category
- Java