TI Logbook
Java, Angular, Eclipse, PostgreSQL, SQL, Tips....
Tuesday, August 8, 2017
How to validate a null or empty array in Java
How to validate a null or empty array in Java
int[] arr = null;
if (arr != null && arr.length > 0){
///......
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment