Jump to content


Photo

Java


  • Please log in to reply
45 replies to this topic

Poll: Should there be a forum for Java?

Should there be a forum for Java?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#21 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 19 December 2003 - 04:16 PM

show a lesson.
Posted Image

#22 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 19 December 2003 - 05:52 PM

Go on....
Posted Image

#23 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 23 December 2003 - 03:46 PM

Welcome To Java Learning!

Lesson: Input Library

Chapter: Intro

Input library-
In order to use Strings, Intergers, Chars, and doubles, you need to setup an input class file to do so.
So lets get to the input. To use just save it as input.java where your java programs are, then compile
it-then in your class have input in=new input();

You can then have:
1.) int n=in.getInt();
2.) String n=in.getString();
3.) double d=int.getDouble();
4.) char c=in.getChar();

// Input Class

// to set it to IO
import java.io.*;

//file name
public class input

//this line will send the following commands to the system after compiling it
	{public static BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

// functions
	public static int getInt() throws IOException
// to get ints
  {int n=Integer.parseInt(in.readLine());
// return statement
  return n;
	}

	public static double getDouble() throws IOException
  {double n=Double.parseDouble(in.readLine());
// return statement
  return n;
	}

	public static String getString() throws IOException

  {String n=in.readLine();
// return statement
  return n;
	}

	public static char getChar() throws IOException

  {String n=in.readLine();
// return statement
  return n.charAt(0);
	}
}


#24 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 23 December 2003 - 03:57 PM

Welcome To Java Learning!

Lesson: IO

Chapter: Intro

IO-


Question#2 IO
Create a program that will allow a person to type in two numbers and print out the smallest
number.

Example.

Enter in 2

Enter in 3

print-out 2 is the smallest

* You can use Int's, or double's
-Int: you get the whole number thats it
-ex. 92

-double: you get the whole number and after the decimal point
-ex. 92.5

* Use any name to declare an int, it does not matter













Answer: It should have looked something like this
{int n1, n2;
System.out.println("Enter 1st number");
n1=in.getInt();
System.out.println();
System.out.println("Enter 2nd number");
n2=in.getInt();
if(n1<n2)
{System.out.println();
System.out.println(n1+" is the smallest");
}
else
{System.out.println();
System.out.println(n2+" is the smallest");
}
}
}


#25 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 23 December 2003 - 04:06 PM

More info about what each bit of code does would be nice.

#26 vice

vice
  • New Members
  • 6 posts

Posted 24 December 2003 - 12:01 AM

well, right off the bat lord. you don't know what each line of code means. i mean you don't even know what import java.io.*; does. i thought you knew java?

put simply, people who have been taking java for a few months should not be writing tutorials on the subject. so do the users at this forum a favor, and stop the bull. anyhow, if this does go through, i will help you with the lessons in order for the users to gain a better knowledge of the language.


figure it out.

#27 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 24 December 2003 - 12:37 AM

I only know a tiny bit of C++, yet i'm able to write tutorials. Although, I could guide someone out of armageddon - I'm just good at explaining.


Welcome to the forum vice. Intresting first post :p

#28 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 24 December 2003 - 12:40 AM

Quite true. Before you can teach, you must understand. To understand, you need to know. Once you know Java, then you can teach it. Unrelated note, I've got my C++ book now, so I can help with problems a bit more.
:p
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#29 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 07 January 2004 - 06:47 PM

The main reason why this wont go through is because of communication.

I can describe a shadow to a blind man (think about it).
People like you, mastermind, and many others; just aint "user friendly" enough.

Imagain being at the top of a mountain. The mountain has many diffrent paths and obstacles. You can't just tell someone to "climb up" and expect them to reach the top just because you could.

#30 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 07 January 2004 - 07:29 PM

The main reason why this wont go through is because of communication.

I can describe a shadow to a blind man (think about it).
People like you, mastermind, and many others; just aint "user friendly" enough.

Imagain being at the top of a mountain. The mountain has many diffrent paths and obstacles. You can't just tell someone to "climb up" and expect them to reach the top just because you could.

I can be user friendly, I just have other people do it for me. You still need to be able to explain everthing with Java. Start with something simple, and work your way up. Think of how you learned it, and then explain that.
:)
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#31 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 09 January 2004 - 03:47 PM

Yes thank you Masterind, but this vice dude is realy rude, I asked him a simple question, where do you live, and he gives me some bull.

Guess who.

Just because I'm not "user-friendly" enough doesnt mean I can't program in java!

#32 Stino

Stino

    AKA Stink_o

  • Hosted
  • 1,421 posts
  • Location:the Netherlands
  • Projects:Blitzkrieg II:The Finest Hour (BlitzII:TFH)
  •  Doer of Things

Posted 09 January 2004 - 04:02 PM

It's only 1 man.. let him go.
Posted Image

#33 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 13 January 2004 - 09:48 PM

AR! I'm going to be brutal...
What the hell does it do!?!
Come on, you have to do more than post mindless lines of letters.

#34 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 13 January 2004 - 11:20 PM

I can understand what it does, but there is absolutely no usefulness, and you have no explanation. Just putting up code does absolutely no good. Try creating a simple application, and then explain what you need to make it work. Explain what each part of the code does, and then, perhaps we can consider adding a forum.
:)
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#35 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 14 January 2004 - 05:52 AM

note the "perhaps"... I can't read java worth shit... so I'm going to work on php and c++ first...

#36 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 14 January 2004 - 03:47 PM

note the "perhaps"... I can't read java worth shit... so I'm going to work on php and c++ first...

The main reason I can read it is that I'm used to reading code to find the function. I don't know PHP or SQL, but I'm working on making the RPG mod better, just by reading variable names, and function calls, and looking at the Syntax. With well documented code, and good variable names, someone should be able to read your code, and have a good idea how it works, especially if they can see what it actually does.
:)
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#37 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 09 February 2004 - 03:47 PM

yeah well thats ok stino.

#38 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 04 February 2004 - 03:40 PM

Stino PMed me and said to make the bar sexy? is that ok to do?

#39 DrPietro

DrPietro

    Old timer from Origin

  • Members
  • 181 posts
  • Location:Inside memory address ACF67BH

Posted 02 February 2004 - 03:43 PM

Netscape compatible! A hard thing yes indeed. I shall try my hardess.

#40 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 03 February 2004 - 11:11 PM

Thanks. Using Mozilla and not having it work was/is annoying.
:blinky:
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users