We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
So i had an idea for Java
Topic Started: Jan 12 2005, 07:28 PM (253 Views)
Deleted User
Deleted User

i am not a big fan of using System.out.println("sentance or wahtever here");

nor am i a fan of variable = Keyboard.readInt();

so what im goin to do is make an Iostream class for java that will include all the methods for

cout("stuff here");

and

cin.Int(variable here);

along with double, char, boolean, string, and all other data types.

and ill set it so all u have to do is import Iostream.* above your main and thats it!

im lazy arent I?
Quote Post Goto Top
 
RagingFuryBlack-ZNS
Member
[ *  *  * ]
yes, your lazy....and good luck with that...let me know how it turns out
Offline Profile Quote Post Goto Top
 
Rory
Member Avatar
i;m a mess
[ *  *  *  *  *  *  * ]
One of my lecturer's did this as well. But not with C style names. Just print() instead of System.out.println().
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
Use PHP style names, they're more common-sensical :P

cout()? Come on...
Offline Profile Quote Post Goto Top
 
Darth_Lelei
Member Avatar
OOOh, I'm not good enough for a title
[ *  * ]
what is PHP script al together?
Offline Profile Quote Post Goto Top
 
Stefan
Member Avatar
Mew?
[ *  *  *  *  *  *  * ]
Seth
January 13, 2005 08:50 PM
Use PHP style names, they're more common-sensical :P

cout()? Come on...

control insertions to the standard output as a byte stream.
It's not that hard :P

In php, that would be control_insertions_to_standard_output_as_byte_stream()

Oh, wait... No. There already is a function (no, not even a function) for that in PHP:



echo
Offline Profile Quote Post Goto Top
 
RagingFuryBlack-ZNS
Member
[ *  *  * ]
Stefan
January 14, 2005 06:25 AM
Seth
January 13, 2005 08:50 PM
Use PHP style names, they're more common-sensical :P

cout()? Come on...

control insertions to the standard output as a byte stream.
It's not that hard :P

In php, that would be control_insertions_to_standard_output_as_byte_stream()

Oh, wait... No. There already is a function (no, not even a function) for that in PHP:



echo

:geek: lol, anything is better than typing system.out.println(strPoo) 30 times.


use something more sensable than the old C commands.....use echo, print, something thats not a reserved word, but that is shorter than that.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply