Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-2007, 02:55 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-30-2007, 03:03 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
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);

}

}
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-01-2007, 02:59 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
please can someone help
__________________
~Live as if you were to die tomorrow.~
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-01-2007, 06:38 AM
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-01-2007, 07:14 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
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.~
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 12-02-2007, 05:29 AM
Member
 
Join Date: Nov 2007
Location: Hershey, PA
Posts: 13
padutch2 is on a distinguished road
Send a message via AIM to padutch2
anyone else
__________________
~Live as if you were to die tomorrow.~
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 12-03-2007, 05:01 AM
Senior Member
 
Join Date: Nov 2007
Location: Newport, WA
Posts: 141
staykovmarin is on a distinguished road
Well if you dont have it as an import, it might mean that cs1 (whatever it is) is not in your classpath.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ant outside of netbeans ProbablyX NetBeans 0 02-14-2008 09:06 PM
NetBeans 5.5 Ry4n NetBeans 3 01-26-2008 08:09 AM
help with netBeans the godfather01 NetBeans 3 11-14-2007 09:54 PM
netbeans 64 bit caspermel NetBeans 1 06-27-2007 12:29 AM
About using netbeans yuchuang NetBeans 3 05-27-2007 10:06 PM


All times are GMT +3. The time now is 03:46 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org