java how to convert float int code example
Example 1: convert string to float java
String yourString = "23.7";
float yourFloat = Float.parseFloat(yourString);
Example 2: java convert float to int
int a = (int)float1
String yourString = "23.7";
float yourFloat = Float.parseFloat(yourString);
int a = (int)float1