I am getting a String value as
String A = KS!BACJ
String B = KS!KLO
String C = KS!MHJU
String D = KS!GHHHY
Is it possible to remove the KS! from the String so that it only looks like BACJ
public class Main {
public static void main(String args[]) {
String A = "KS!BACJ";
if(A.startsWith("KS!"))
{
}
}
}
Try
String a = A.substring(3);