bed
bed
JCHJava Community | Help. Code. Learn.
Created by bed on 3/8/2025 in #java-help
Using Regex for spaces
Hello, I currently use !hasnext() to try and ensure that the input word doesn't have any characters other than letters, which works fine however I am not sure how to make it so that regex also detects whether or not any spaces are in the input
46 replies
JCHJava Community | Help. Code. Learn.
Created by bed on 3/6/2025 in #java-help
Need help with padding(i think?)
My program uses string.format to print a table out line by line from a file, which works fine, but it doesn't line up well I tried to fix this by making the end of each column add spaces onto the end, so that they would all be the same length - however I cant figure out how The closest ive gotten is by using 0 padding, but #1 this only works with integers, and two this only seems to work on the left side (btw this might not be called padding, im still learning string.format)
40 replies