Browse Source

Added isNumber Method to Administration class

remotes/origin/fdai7780
Tobias Herbert 11 months ago
parent
commit
3840659063
  1. 16
      src/main/java/org/example/Administration.java

16
src/main/java/org/example/Administration.java

@ -208,6 +208,22 @@ public class Administration {
}
}
public boolean isNumber(String substring)
{
if(substring == null || substring.isEmpty())
{
return false;
}
for(char c : substring.toCharArray())
{
if(!Character.isDigit(c))
{
return false;
}
}
return true;
}
}
Loading…
Cancel
Save