hey,
been trying to teach myself java and just wanted to ask a question. I'm using Borland Jbuilder and i created a class. Now, i got this book and and just started working on something called strings. My code looks like this:
public class Testing {
String getString()
{
return "This is a string";
}
}
Basically just wondering what the purpose of the () is for? Also, what the ; at the end of return is for? lol and what the whole idea behind all the {'s
Thanks for any help!


LinkBack URL
About LinkBacks
Reply With Quote



