Results 1 to 8 of 8

Thread: [RESOLVED] Silly question about string

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Resolved [RESOLVED] Silly question about string

    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.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Silly question about string

    Capital "S" on String.

    Java naturally handles all primitive data types such as int, String, char, float, etc.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Silly question about string

    String ain't a primitive ...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Silly question about string

    Quote Originally Posted by CornedBee
    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 types

    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

  5. #5

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Silly question about string

    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.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Silly question about string

    java.sun.com
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  7. #7
    Addicted Member TBeck's Avatar
    Join Date
    Apr 2006
    Location
    Ontario, Canada
    Posts
    254

    Re: Silly question about string

    yes java docs are very useful... especially for those of us with bad memories

    exact url is http://java.sun.com/j2se/1.5.0/docs/api/index.html for javadoc 1.5

  8. #8

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Silly question about string

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width