how to check the end of a string java
public class Demo {
public static void main(String[] args) {
String str = "demo";
if(str.endsWith("mo")) {
System.out.println("The string ends with the word mo");
} else {
System.out.println("The string does not end with the word mo");
}
}
}
Also in Java:
- how to make a pre set list java
- spigot sounds
- spigot deal damage
- how to print in java
- reading string after double in java
- map.keyset in java
- padding a string with 0 in java
- java how to iterate through a arraylist
- java set value of arraylist
- android hide and show bottom navigation
- check if string is null or empty java
- get drawable with string android java
- string to long java
- how to split a string in java
- leap year checker java
- tostring() java example
- java list get first element
- demo java file
- phoneword converter
- java read string input
- byte java
- how to check the lines in a file java scanner
- if statement java
- gravity in java