I know it's kinda silly but i'm just beggining java,so.
I cannot declare a "string" variable in Java studio creator.
Must i import something?
Thanks.
Printable View
I know it's kinda silly but i'm just beggining java,so.
I cannot declare a "string" variable in Java studio creator.
Must i import something?
Thanks.
Capital "S" on String.
Java naturally handles all primitive data types such as int, String, char, float, etc.
String ain't a primitive ...
Thats what I thought too..And I just did a search on the web and found this site that lists the actual primitive typesQuote:
Originally Posted by CornedBee
http://www.cafeaulait.org/course/week2/02.html
The reason I stated as such is because my Java teacher told us on Friday that it was. And I wasn't really going to question him since he has been programming for years and years
Thank you.
Btw is there a site or a page that list componets of Java?
P.E. I want to pop up a messagebox like VB or use a listview , well, the relevant in Java, etc.
java.sun.com
yes java docs are very useful... especially for those of us with bad memories :rolleyes:
exact url is http://java.sun.com/j2se/1.5.0/docs/api/index.html for javadoc 1.5
Thanks.