KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

java tutorial, java lessonThe following is the example we used in previous lesson.

1. class variable
2. {
3. public static void main(String[] args)
4. {
5. int HisBooks=30;
6. int MyBooks=40;
7. int TotalBooks=HisBooks+MyBooks;
8. System.out.println("Total books we have="+TotalBooks);
9. }
10. }

We used int variables in the above code. In Line 7 ,we used Arithmetic Operators +.

Arithmetic Operators

Arithmetic Operators is very similar to what you learn from school. Only a little bit difference. For example, you use ÷ for divide, I use / for divide.

(Since there is no such ÷ key in my keyboard. :>)

I use * for multiplication.

Operator Sign Example
Addition + 3+2
Subtraction - 5-3
Multiplication * 2*5
division / 18/3
remainder % 7%4=3

 

Try & Catch Exceptions
 
How to install JDK
Homework Solutions
 
JAVA JTable
JAVA JTree
JAVA JComboBox
JAVA JTabbedPane
Java JList
JAVA JToolTip
Javascript
WebTip
Forums
Best JAVA books
Head First JAVA, Second Editon

Effective Java Programming Language Guide

Professional Java, JDK 5 Edition

Ivor Horton's Beginning Java 2, JDK 5 Edition

 

 

 

Best books about JAVA programming from Amazon
Professional Java, JDK 5 Edition (Paperback Simply Java Programming: An Application-Driven Tutorial Approach (Paperback) Effective Java Programming Language Guide (Paperback) Head First Java, 2nd Edition (Paperback) Java : An Introduction to Problem Solving and Programming (4th Edition)

 

Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © kidslovepc.com All rights reserved(new). Privacy|Copyright
designed by info@kidslovepc.com

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer