idiot question, I know but I am a total beginnner, please forgive me.
I am new to java and this site, so first thanks for reading this.
I am trying to learn java and I have a book called thinking in java, it seems to be a good book.
There is a line of code that just confuses me a bit and I would like some clearification about it.
int storage(string s)
return s.length() * 2;
This is total beginner stuff I know.
the very first part is what confuses me, why is storage there? int initializes an intiger, (string s) is makeing a string called s, and return s.length() returns the lenght in bytes of s.
I just dont know why the word storage is there.
Any help is appreciated
Thanks
Re: idiot question, I know but I am a total beginnner, please forgive me.
Re: idiot question, I know but I am a total beginnner, please forgive me.
ok thanks so lets see if I got it this time...
so int is the reurntype storage is the method(string s) is the argument.
The method names and class names he uses in this book connfuse me sometimes.
thanks for the link
walkswithzombies