Thank you very much for the nudge.
ja.append(add0.substring(0,3)+"-"+add0.substring(3,5)+"-"+add0.substring(5)+"\n");
Type: Posts; User: miller4103
Thank you very much for the nudge.
ja.append(add0.substring(0,3)+"-"+add0.substring(3,5)+"-"+add0.substring(5)+"\n");
I have never heard about substrings. What are they. Also i will try a loop right now. I dont know why i didnt think of a loop although i dont know how to get it to do that.
would i use an if-for or...
String ja = textArea;
add0 = input number variable;
I need the input number to be 12345678; (input from user 8 numbers)
but when its output (write to .dat) it gets written as 123-45-678:
How...
When i input a number in my append i need to have 3 - in it. for example when i have this number 12345678 I need it to write to file 123-45-678. I would think i need to use the format thing but need...