Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
package routines;
public class MyRoutines {
public static Boolean isNumeric(String str) {
if(str.equals("")){
return false;
}
for(int i=str.length();--i>=0;){
int chr=str.charAt(i);
if((chr<48&&chr!=45)|| chr>57)
return false;
}
return true;
}
}
Hi,
In the table i have column of data type decimal(12,6) in infobright (mysql) db ,the values in the column have the values
as below:
356.400000
************
-129.840000
how to replace this **** value in the column to zero wherever it occurs
row1.columnName.contains("*")?new java.math.BigDecimal("0"):new java.math.BigDecimal(row1.columnName)