Is there any way to cast a null to Integer. The null is actually a String, which i am passing in my service layer that accepts it as an Integer. So, whenever i try to cast a
String s= ""; int i=0; i=Integer.parseInt(s+0); System.out.println(i);
Try this