[Solved] “filed value” is coming like ‘1123456@lopoa’ format


You should use split(String) method of String class.

Following is working code:

public static void main (String[] args)
{
    String val = "1123456@lopoa";
    String[] vals = val.split("@");
    System.out.println(vals[0]);
}

Output:

1123456

See it working here

solved “filed value” is coming like ‘1123456@lopoa’ format