it happens that the user click on enter where i dont want to include it as a part of my input the string can end with 3 times \n so just replacing one wont do the job my solution was ;
String values[] = string_Ends_With_Back_Slash_N.split("\n");
String String_without_Back_Slash_N =new String (values [0]);
//or just to point there without the new but i want later to dump the garbage.
or at least to dump values to the gc now ....
so two q :
- is there more efficent way?..
- who do i call the compiler (java on android ...)