View Single Post
Old 02-16-2004, 11:22 PM   PM User | #2
sad69
Senior Coder

 
Join Date: Feb 2004
Posts: 1,206
Thanks: 0
Thanked 0 Times in 0 Posts
sad69 is an unknown quantity at this point
Java is about as high level as BASIC is, I think.

Java doesn't refer to variables with a $ in front.

For example:
Code:
 int a, b;
 a = 5;
 b = 3; 
 a = b + 2;
 b = 4;
The Java version of your BASIC code would be:
Code:
 if(a == 2)
  b = 3;
As far as strings go, Java has an object called String. Here are some examples with String:
Code:
 String a, b;
 a = "Hello";
 b = "World!";
 System.out.println(a+" "+b);
 String c = a+" "+b;
 System.out.println(c);
I'm not sure what else you need. There are plenty of tutorials online regarding this sort of stuff. I also think it would be good to look at some sample code programs and try to step through them and figure them out. Also, try to make changes to the programs and predict their effects. Then try to create your own sample programs using what you've learnt, and slowly reach your goal.

Try this site:
http://www.********************/java/index.php

Hope that helps,
Sadiq.
sad69 is offline   Reply With Quote