We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 20,738 times

Related Categories

Number Operations

Chocobo

There are ways to make modifying integers and other number variables much more quick then they usually are. Want to know how? Read on...

I'll teach you speedy number operations in this tip. Please note: varName represents a variable, so I don't have to explain that to you over and over. varName can be changed with any variable. Now, let's get on with it...

Don't you hate having to write out stuff like:

varName = varName + 1

Well there is an easier way!! You can simply use:

varName ++

This will add 1 to your number. ++ simply adds 1. What if you wanted to add another number, like 5? Well, there's a good way to do this too. Just use:

varName =+ 5

=+ tells JAVA that you're adding to your integer. Just put a number after it and it will be added! Simple! I hope this has been helpful.

Uhm... I dunno why I'm typing this, cuz nobody is gonna read it probably, but anyway... I am (guess my age!! haha... 14) years old and I like programming, web design, and graphic design. I'm pursuing a career in game programming. I like basketball, volleyball, skiing, snowboarding, and skateboarding. My favorite pro skater: [b]Jamie Thomas!![/b] Well... I guess that about covers it. Oh yeah... I love to play video games, I'm a Final Fantasy fanatic, I have FF7-9 and FFT, gonna get FF10... I also like the Tony Hawk's Pro Skater series. Gameboy Advance rules! :p

All content in this tutorial was created by the author, Jamie Lindgren, and may not be reproduced without the author's permission. To contact the author, please send an e-mail to wipeoutgc@hotmail.com

Comments

  • JavaScript and C++

    Posted by AaronHudson on 02 May 2003

    Hey, I'm 15 and have been using Visual Basic since I was early 14 - so we're both young programmers.

    I've recently took an interest in other languages such as C++ and JavaScript and also .NET. Whic...

  • Posted by gigsvoo on 03 Nov 2001


    Goto www.learnasp.com/learn

    you can learn free asp scripting and it is quite comprehensive.

  • Posted by Chocobo on 03 Nov 2001

    Sorry... I don't know ASP o_O

  • ASP how to? pls Help!

    Posted by greekgeek on 02 Nov 2001

    Im an aspiring ASP developer but lack the know how please help