Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 4th, 2004, 11:51 AM   #1
muska666
Newbie
 
Join Date: Dec 2004
Posts: 2
Rep Power: 0 muska666 is on a distinguished road
Hi, i'm new to programming, I have just started it in my gr 11 computer engineering class and we are using Ready to program with java and I d/l Netbeans but the syntax is quite different and I was wondering if anyone could help me with how to use field widths and how to input from the keyboard? Thanks for any help recieved, it would be greatly appreciated.

MM
muska666 is offline   Reply With Quote
Old Dec 5th, 2004, 7:07 PM   #2
groovicus
Programmer
 
Join Date: Nov 2004
Posts: 84
Rep Power: 4 groovicus is on a distinguished road
I have had a long last week, so my remaining two brain cells are hanging on for dear life...forgive me if I have totally misunderstood you.

What do you mean the syntax is different??

Do you mean textfield widths like a JTextField??

JTextfield jt = new JTextFiled(20); <-- where 20 would be the size of your text field. Is that what you mean?

To input your text, you click in the textfield and type :unsure:

Could you clarify your questions a bit more??
__________________
HijackThis Team-SFDC
groovicus is offline   Reply With Quote
Old Dec 5th, 2004, 7:53 PM   #3
muska666
Newbie
 
Join Date: Dec 2004
Posts: 2
Rep Power: 0 muska666 is on a distinguished road
what i meant is for example using Ready to program with Java how i would write a field width is

c.println("Hello", 20);

the 20 meaning it puts the word in the quotations on the 20th space

as for inputting from the keyboard

int age;
age = 0;
c.println("Enter your age:");
age = c.readInt();

or

c.println("Enter your age:");
int age = c.readInt();

I hope this is clearer and hope you can help me, thanks
muska666 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC