Results 1 to 7 of 7
  1. #1
    padutch2 is offline Member
    Join Date
    Nov 2007
    Location
    Hershey, PA
    Posts
    13
    Rep Power
    0

    Default NetBeans 5.5.1 Help.

    Ok so I'm dumb with this sorry, but at school we use Netbeans 3.0 and 5.5.1 is way different and at school I can use
    import cs1.Keyboard
    to get inputs from users but i dont know what i need to imort in this version to get inputs.
    also if you could tell me the imports for random,string,tokenizers,and math

    thanks

  2. #2
    padutch2 is offline Member
    Join Date
    Nov 2007
    Location
    Hershey, PA
    Posts
    13
    Rep Power
    0

    Default

    Here is what it looks like at the begining:

    /*
    * Main.java
    *
    * Created on November 29, 2007, 6:58 PM
    *
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    */this is just the heading i know

    package javaapplication6; <--i never use packages at school

    public class Main <--ahh this looks familar
    {

    public Main () <--dont remeber using this at school
    {
    }

    public static void main (String[] args) <--looks familar
    {
    // yes i put my code here i know
    }

    }




    THIS IS A CODE FROM MY CLASS I DID

    /*

    Jordan Nissley

    fourteen.java



    purpose-aeiou

    */



    import cs1.Keyboard;

    import java.lang.String;



    public class fourteen

    {

    public static void main (String []args)

    {

    String str="";

    int a=0, e=0, i=0, o=0, u=0, one=1, count=0, c=0, other=0;



    System.out.println ("Please enter your text.");

    str=Keyboard.readString();



    one=str.length();



    while(count<1)

    {

    c=str.charAt(count);

    if(c!='a' && c!='e' && c!='i' && c!='o' && c!='u')

    {

    other+=1;

    }



    else

    if(c=='a')

    a+=1;

    if(c=='e')

    e+=1;

    if(c=='i')

    i+=1;

    if(c=='o')

    o+=1;

    if(c=='u')

    u+=1;



    count++;

    }



    System.out.println ("Total a's: " + a);

    System.out.println ("Total e's: " + e);

    System.out.println ("Total i's: " + i);

    System.out.println ("Total o's: " + a);

    System.out.println ("Total u's: " + a);

    System.out.println ("Total of other stuff: " + other);

    }

    }

  3. #3
    padutch2 is offline Member
    Join Date
    Nov 2007
    Location
    Hershey, PA
    Posts
    13
    Rep Power
    0

    Default

    please can someone help
    ~Live as if you were to die tomorrow.~

  4. #4
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    So are you getting an error or something like that?

    Netbeans finds all the imports for you.
    Make sure that the cs1 package is in your classpath. Without an error, i dont know what could be going on.

  5. #5
    padutch2 is offline Member
    Join Date
    Nov 2007
    Location
    Hershey, PA
    Posts
    13
    Rep Power
    0

    Default

    no im not. Im asking what are the imports in netbeans cause my school has classes specialy for my class like import cs1.Keyboard and obviosly thats not an import so i need help.
    ~Live as if you were to die tomorrow.~

  6. #6
    padutch2 is offline Member
    Join Date
    Nov 2007
    Location
    Hershey, PA
    Posts
    13
    Rep Power
    0

    Default

    anyone else
    ~Live as if you were to die tomorrow.~

  7. #7
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    Well if you dont have it as an import, it might mean that cs1 (whatever it is) is not in your classpath.

Similar Threads

  1. help with netBeans
    By the godfather01 in forum NetBeans
    Replies: 11
    Last Post: 02-01-2009, 05:48 PM
  2. Ant outside of netbeans
    By ProbablyX in forum NetBeans
    Replies: 0
    Last Post: 02-14-2008, 08:06 PM
  3. NetBeans 5.5
    By Ry4n in forum NetBeans
    Replies: 3
    Last Post: 01-26-2008, 07:09 AM
  4. netbeans 64 bit
    By caspermel in forum NetBeans
    Replies: 1
    Last Post: 06-26-2007, 11:29 PM
  5. About using netbeans
    By yuchuang in forum NetBeans
    Replies: 3
    Last Post: 05-27-2007, 09:06 PM

Posting Permissions

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