+ 1
how to limit a string in input method in java
3 Answers
+ 3
Somthing like this maby?
if(str.length>10){System.out.print("String is too long please input a string that is less or equal to 10 characters long");}
+ 3
thank you so much bro
+ 2
i think we can use for loop for that bro