well the reason I have the return type is because that is what it wants me to use so I can't do your first way. Im not sure I can use that builder thing in my code though. I dont believe I've learned it yet. What does it do?
So I've been seeing programs using .length or .length() and I was wondering what they do. I was looking in my book and I didn't see what it was. When I looked online what I got from it was that length() is used for strings and basically processes the number of strings or letters used. Is that correct? and does length() differ from length?