Results 1 to 7 of 7
Thread: NetBeans 5.5.1 Help.
- 11-30-2007, 12:55 AM #1
Member
- Join Date
- Nov 2007
- Location
- Hershey, PA
- Posts
- 13
- Rep Power
- 0
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
- 11-30-2007, 01:03 AM #2
Member
- Join Date
- Nov 2007
- Location
- Hershey, PA
- Posts
- 13
- Rep Power
- 0
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);
}
}
- 12-01-2007, 12:59 AM #3
Member
- Join Date
- Nov 2007
- Location
- Hershey, PA
- Posts
- 13
- Rep Power
- 0
please can someone help
~Live as if you were to die tomorrow.~
- 12-01-2007, 04:38 AM #4
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
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.
- 12-01-2007, 05:14 AM #5
Member
- Join Date
- Nov 2007
- Location
- Hershey, PA
- Posts
- 13
- Rep Power
- 0
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.~
- 12-02-2007, 03:29 AM #6
Member
- Join Date
- Nov 2007
- Location
- Hershey, PA
- Posts
- 13
- Rep Power
- 0
anyone else
~Live as if you were to die tomorrow.~
- 12-03-2007, 03:01 AM #7
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
Similar Threads
-
help with netBeans
By the godfather01 in forum NetBeansReplies: 11Last Post: 02-01-2009, 04:48 PM -
Ant outside of netbeans
By ProbablyX in forum NetBeansReplies: 0Last Post: 02-14-2008, 07:06 PM -
NetBeans 5.5
By Ry4n in forum NetBeansReplies: 3Last Post: 01-26-2008, 06:09 AM -
netbeans 64 bit
By caspermel in forum NetBeansReplies: 1Last Post: 06-26-2007, 10:29 PM -
About using netbeans
By yuchuang in forum NetBeansReplies: 3Last Post: 05-27-2007, 08:06 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks