Horje
java test if a string is a int Code Example
java test if a string is a int
public static boolean isInt(String str) {
	
  	try {
      	@SuppressWarnings("unused")
    	int x = Integer.parseInt(str);
      	return true; //String is an Integer
	} catch (NumberFormatException e) {
    	return false; //String is not an Integer
	}
  	
}




Java

Related
how to randomize an array java Code Example how to randomize an array java Code Example
java for map Code Example java for map Code Example
javafx initialize Code Example javafx initialize Code Example
default night mode not working Code Example default night mode not working Code Example
import android.support.v4.media.app.NotificationCompat.MediaStyle; Code Example import android.support.v4.media.app.NotificationCompat.MediaStyle; Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8