Edge
Hello,

Welcome on the website of "Edge" also known as "edge-pk.com"
i hope you will enjoy your self on the site.
The Edge server was first owned by maarten, he sold it to us for a fair price, now you can enjoy the max of "EDGE".

Good Luck Playing, and please register

Basics of Java.

Go down

Basics of Java.

Post  Skill Nd PVP on Sun Mar 21, 2010 2:47 am

Operators, for example the mathematical operators +, -, /, *, % and logical operators && (AND) and || (OR) are familiar from other programming languages, such as C++. The equality operator is ==. An example:

Code:
int a = 10;
int b = 88;

if( a != b ) {
  System.out.println("a does not equal b");
}

if( a + b < 100) {
  System.out.println("a + b is less than 100");
}

if( a % 2 == 0) {
  System.out.println("a is an even number");
}

output.

Code:
a does not equal b
a + b is less than 100
a is an even number

Let me explain the Most Basic Java code i think there can be
and that it strings
Here.

Code:
String abbyquest = "Has started the new quest!";
String howto = "for more information type ::abbyquest!";

String description = abbyquest + "! " + howto + "!";
System.out.println("Member Of Server " + description);
}

Your result will be:
Code:
Member Of Server Has started the new quest!! for more information type ::abbyquest!!

Okay, Let's starrt.
Code:
String name = "Message!!";
String huh = "lol";

That Would just cut down the message insted of typing all of it down...
so it would make it this
+ name +
Result:

Code:

Message!

But if you add these now:
Code:
String description = name + " so " + huh + " Cool?";
System.out.println("Test " + description);

It would Reconize the:
Code:
String name ="Message!!";

And it would Reconize the:
Code:
String description = name + " so " + huh + " Cool?";

So in the end it will put into one line and .. its done..

So the end up code would be
Code:
String name = "Message!!";
String huh = "lol";

String description = name + " so " + huh + " Cool?";
System.out.println("Test " + description);
}

Result:
Code:
Test Message!! so lol Cool?

Want to try this out?

Heres the code:
Code:
public void basics() {
String name = "Message!!";
String huh = "lol";

String description = name + " so " + huh + " Cool?";
System.out.println("Test " + description);
}

Thanks.

- Skill Nd PVP

Skill Nd PVP
Admin

Posts : 49
Reputation : 10
Join date : 2010-03-10
Age : 25
Location : -Edge

View user profile

Back to top Go down

Re: Basics of Java.

Post  Sooks on Fri Apr 09, 2010 9:41 pm

I'm sure most of the players won't bother to learn this :p but i'm glad you posted it! It just refreshed my memory from what i already know.
avatar
Sooks
Member
Member

Posts : 38
Reputation : 10
Join date : 2010-03-23
Age : 26
Location : Great White North

View user profile

Back to top Go down

Re: Basics of Java.

Post  Etro on Fri Apr 09, 2010 9:45 pm

Too hard for me Razz
avatar
Etro
Rune Member
Rune Member

Posts : 118
Reputation : 18
Join date : 2010-03-04
Age : 26
Location : Finland

View user profile

Back to top Go down

Re: Basics of Java.

Post  WebMagic on Fri Apr 09, 2010 11:29 pm

this is more batch work? :p

WebMagic
Admin

Posts : 104
Reputation : 12
Join date : 2010-03-04

View user profile http://www.edge-pk.com

Back to top Go down

Re: Basics of Java.

Post  Iwin on Thu Apr 22, 2010 4:02 am

Too easy, do something harder =\

Iwin
Junior member
Junior member

Posts : 20
Reputation : 10
Join date : 2010-03-22
Age : 25

View user profile

Back to top Go down

Re: Basics of Java.

Post  Moppy on Wed Apr 28, 2010 4:15 pm

Pretty simple ..
Can you make a more advenced guide? or pm me for more advanced help? Razz
avatar
Moppy
God Member
God Member

Posts : 546
Reputation : 28
Join date : 2010-03-05
Age : 25
Location : UK

View user profile

Back to top Go down

Re: Basics of Java.

Post  dutchy on Wed Apr 28, 2010 10:11 pm

still good,
always usefull for later
avatar
dutchy
3rd Age Member
3rd Age Member

Posts : 430
Reputation : 15
Join date : 2010-03-04
Age : 23
Location : liveing in holland

View user profile

Back to top Go down

Re: Basics of Java.

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum