Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-21-2004, 04:46 AM   #1
Solid State Member
 
unleasher's Avatar
 
Join Date: Jul 2004
Posts: 15
Send a message via Yahoo to unleasher
Default Java sucks

I am learning to programm in java. I try this line keyboard.read() and it couldn't complie. Can you be of help to me ?
__________________

unleasher is offline   Reply With Quote
Old 12-21-2004, 05:00 AM   #2
Solid State Member
 
ninnywaff's Avatar
 
Join Date: Dec 2004
Posts: 12
Default Re: Java sucks

choice = (char) keyboard.read(); // read only one character

keyboard.read(); // skip end of line character

is it a line like that? this only takes one character only for processing after listing keyboard inputs as a choice to a question. My advice to you is double check all ";" and "{}" but more than that I can't say really.
__________________

ninnywaff is offline   Reply With Quote
Old 12-21-2004, 08:40 PM   #3
Daemon Poster
 
broknhabit's Avatar
 
Join Date: Sep 2004
Posts: 1,222
Send a message via AIM to broknhabit
Default Re: Java sucks

heh java probably isn't messed up
its almost always the user
__________________
seriously
broknhabit is offline   Reply With Quote
Old 12-23-2004, 10:35 AM   #4
Solid State Member
 
Join Date: Dec 2004
Posts: 9
Angry Java Does Not Sucks

Well you should know that Java is not so low-level as
C (C++) or other native - code - compiled languages...

And it was made to be much more versatile than just reading
char from keyboard... well it is an Internet language....


and most elegant existing today... and...

great....


www.ilumnis.com
ilumnis is offline   Reply With Quote
Old 12-23-2004, 10:12 PM   #5
Daemon Poster
 
CarpeNoctem's Avatar
 
Join Date: Oct 2004
Posts: 1,274
Send a message via AIM to CarpeNoctem Send a message via MSN to CarpeNoctem
Default Re: Java sucks

I don't really like java. I learned java in computer science and i did not like it much. It was easy to catch on to and I can see where it can be better than C++ but I still like to stick with C++.
__________________
How many people can read hex if only you and dead people can read hex?

Start using reputation points!!!
CarpeNoctem is offline   Reply With Quote
Old 12-27-2004, 09:00 AM   #6
Solid State Member
 
Join Date: Dec 2004
Posts: 9
Default java rulez

ok,

I agree with you that people shouldn't just follow trends... you
must do what you must do and you do what suits you best...


www.ilumnis.com

the best
ProjectTracking and SourceControl software

to see screenshots go to

http://www.ilumnis.com/images/screen...cttracking.htm
ilumnis is offline   Reply With Quote
Old 12-29-2004, 12:20 PM   #7
Solid State Member
 
rakeshdx's Avatar
 
Join Date: Dec 2004
Posts: 12
Default Re: Java sucks

hello, Java is not very tough.Its the general misconception that other people spread about it.. It is the best programming languate cuz of its byte code..
rakeshdx is offline   Reply With Quote
Old 12-29-2004, 03:13 PM   #8
Solid State Member
 
unleasher's Avatar
 
Join Date: Jul 2004
Posts: 15
Send a message via Yahoo to unleasher
Default Re: Java sucks

Well I am not having problem with the language. I think java is fun . I am a programmer in XXbasic but i want to try my hand on java as i can see that it has more potential. the Code keyboard.read(); is not compiling at all. Is it from the Jdk i am using ?I am using jdk 2 and the tutorial with this code is base on jdk 1.0. Thanks gays for your help and keep me inform.
unleasher is offline   Reply With Quote
Old 01-09-2005, 09:14 PM   #9
In Runtime
 
truarabplayer's Avatar
 
Join Date: Dec 2004
Posts: 136
Default

Ok, here this might help its a little shortcut, for gettting the computer to "read" user input, thats what it looks like you trying to do.Go to http://users.drew.edu/bburd/BeginPro...DummiesIO.java Save this file with the files you are running. Instead of typing all that stuff all you have to type is DummiesIO.get(whatever ect. string, char, int) and it will "read" the user input. Hope it helps.
__________________

__________________
amd64 3000, slotek mobo, 1 gig ram, 420 watt psu gaming case, XFX nVIDIA GeForce 6600GT, 2 160 hd on raid 0,
truarabplayer is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:17 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0