DIA Technologies ..... Shahid Mehmood Akhtar, B.S Honours [ 2001-04 ],University of Engineering and Technology Lahore, Pakistan. All the Programs, Projects and Games in C++, C, Visual Basic, Java and Assembly Language are written by DIA Tech.  Please send your Comments and Suggestions about the web site to DIA Tech at [email protected].
SHAHID MEHMOOD

Home

  C : Basic Programming
     : System Programming
  C++ : OOP
    : Algorithms
    : Data Structures
    : Numerical Analysis
    : Basic Programming
    : Computer Graphics
    : System Programming
    : Compiler Construction
    : Challenging Problems
  Java : Basic Programming
      : Challenging Problems
      : Advance Programming
  Games : Setups
    : Source Code
    Projects
  Libraries
    Visual Basic
  Assembly Language
  About : Me  :  My CV
  Utilities : Compilers - IDE's  
This section JAVA : Basic Programming contains source codes of many different type of Java Programs to learn the JAVA Basics. These Programs are well formatted and easy to understand. I am mainly following the book " Beginning Java 2" by Ivory Horton to learn Java.

select one of the Topics listed below:
Input - Output - Variables
Bitwise Operators
Conditional Statements - Logical Operators
Loops - The Continue/Break Statement
Arrays - Arrays of Arrays
Strings
String Buffer
Classes
Extending Classes and Inheritance
Standard Library Class Methods

Note:
All the given files are in zip format, which can be uncompressed with the help of a compression tool. If you do not have any tool, then you can get one from Utilities:Compression Tools.

Input - Output - Variables
JAVA_01 A Java Program to print a string on the Standard Output Device.
JAVA_02 A Java Program to declare and initialize Integer variables and print them on the Standard Output Device.
JAVA_03 A Java Program to show the use of Increment and Decrement Operators.
JAVA_04 A Java Program to declare and initialize Floating-Point variables and print them on the Standard Output Device.
JAVA_05 A Java Program to read input from the Standard Input Device.
JAVA_06 A Java Program to declare and initialize Boolean variables and print them on the Standard Output Device.
JAVA_63 A Java Program to print some text on the same line using multiple print statements.
Bitwise Operators
JAVA_07 A Java Program to show the use of Bitwise Operator (&) AND.
JAVA_08 A Java Program to show the use of Bitwise Operator (|) OR.
JAVA_09 A Java Program to show the use of Bitwise Operator (^) XOR (Exclusive OR).
JAVA_10 A Java Program to show the use of Bitwise Operator (~) Complement.
JAVA_11 A Java Program to show the use of operator (<<) Shift Left filling with zero from the right.
JAVA_12 A Java Program to show the use of operator (>>) Shift Right, propagating the sign bit from the left.
JAVA_13 A Java Program to show the use of operator (>>>) Shift Right, filling with zeros from the left.
Conditional Statements - Logical Operators
JAVA_15 A Java Program to show the use of If Statement.
JAVA_16 A Java Program to show the use of If-Else Statement.
JAVA_17 A Java Program to show the use of Nested If-Else Statements.
JAVA_18 A Java Program to show the use of Conditional AND Operator (&&) in If Statements.
JAVA_19 A Java Program to show the use of Logical AND Operator (&) in If Statements.
JAVA_20 A Java Program to show the use of Conditional OR Operator (||) in If Statements.
JAVA_21 A Java Program to show the use of Logical OR Operator (|) in If Statements.
JAVA_22 A Java Program to show the use of Logical or Boolean Negation i.e. NOT (!).
JAVA_23 A Java Program to show the use of Conditional (Ternary) Operator.
JAVA_24 A Java Program to show the use of Switch Statement.
JAVA_25 A Java Program to show the use of Switch Statement for the same statement for different case labels.
Loops - The Continue/Break Statement
JAVA_27 A Java Program to show the use of For Loop.
JAVA_28 A Java Program to show the use of While Loop.
JAVA_29 A Java Program to show the use of Do-While Loop.
JAVA_30 A Java Program to show the use of Nested Loops.
JAVA_31 A Java Program to show the use of Continue Statement.
JAVA_32 A Java Program to show the use of Labeled Continue Statement.
JAVA_33 A Java Program to show the use of Break Statement.
JAVA_34 A Java Program to show the use of Labeled Break Statement.
Arrays - Arrays of Arrays
JAVA_35 A Java Program to declare, initialize and print an array of integers.
JAVA_36 A Java Program to copy the elements of an array into another array in reverse order and print them.
JAVA_37 A Java Program to sort the contents of an array using Bubble Sort.
JAVA_38 A Java Program to search an element in an array using Linear Search.
JAVA_39 A Java Program to declare, initialize and print an array of characters.
JAVA_40 A Java Program to declare, initialize and print a 2D array of integers.
JAVA_41 A Java Program to calculate the addition of two matrices using 2D arrays of type float.
Strings
JAVA_42 A Java Program to declare, initialize and print a String object.
JAVA_43 A Java Program to show an example of Arrays of String.
JAVA_44 A Java Program to show an example of Concatenation of Strings.
JAVA_45 A Java Program to show the use of Comparison operator (==) for comparing Strings.
JAVA_46 A Java Program to show the comparing of Strings for equality.
JAVA_47 A Java Program to check the start and end of a String.
JAVA_48 A Java Program to compare Strings by comparing successive corresponding characters, starting with the first character in each String.
JAVA_49 A Java Program to show an example of getting at characters in a String.
JAVA_50 A Java Program to show an example of searching Strings for characters.
JAVA_51 A Java Program to show an example of searching Strings for substrings.
JAVA_52 A Java Program to show an example of extracting substrings from a String.
JAVA_53 A Java Program to show an example of modifying String objects.
JAVA_54 A Java Program to show an example of creating Character Arrays from String objects.
JAVA_55 A Java Program to show an example of creating String objects from Character Arrays.
StringBuffer
JAVA_56 A Java Program to declare, initialize and print a String Buffer object.
JAVA_57 A Java Program to show some properties of String Buffer object.
JAVA_58 A Java Program to append a String Buffer by String Buffer, String objects and other Basic Data Types.
JAVA_59 A Java Program to show insertion of StringBuffer, String objects and other Basic Data Types into a StringBuffer object.
JAVA_60 A Java Program to show an example of extraction of characters from a StringBuffer objects.
JAVA_61 A Java Program to change characters in a StringBuffer objects and to reverse its contents.
JAVA_62 A Java Program to show an example of creating a String object from a StringBuffer Object.
Classes
JAVA_64 A Java Program to show an example of creating a class and using its object.
JAVA_65 A Java Program to show an example of using initialization block to initialize the data members of a class.
JAVA_66 A Java Program to show an example of using constructors in a class to initialize its data members.
JAVA_67 A Java Program to show an example of overloading constructors in a class to initialize its data members.
JAVA_68 A Java Program to show an example of using multiple classes in a program.
JAVA_69 A Java Program to show an example of using a recursive method in a class.
JAVA_70 A Java Program to show an example of using user-defined package in a program.
JAVA_71 A Java Program to show an example of using a Static Nested Class.
JAVA_72 A Java Program to show an example of using a Non-Static Nested Class.
JAVA_73 A Java Program to show an example of using a Static Nested Class outside the Top-Level Class.
Extending Classes and Inheritance
JAVA_74 A Java Program to show an example of Driving and using a Class.
JAVA_75 A Java Program to show an example of Overriding a Base Class Method.
JAVA_76 A Java Program to show an example of Calling a Base Class Method from a Derived Class.
JAVA_77 A Java Program to show an example of Polymorphism.
JAVA_78 A Java Program to show an example of Multiple Levels of Inheritance.
JAVA_79 A Java Program to show an example of using Abstract Class and Abstract Method.
JAVA_80 A Java Program to show an example of Copying Objects i.e. Clonning Objects.
Standard Library Class Methods
JAVA_14 A Java Program to show the use of some Math Methods.
JAVA_26 A Java Program to show the use of some Character Methods.
[ Home | C | C++ | Java | Games | Projects | Libraries | Visual Basic | Assembly Language | About Me ]
  Copyright © 2000-2004
  Shahid Mehmood Akhtar
Recommended Browsers:
Internet Explorer 5.0+
Recommended Resolution:
800x600*
Report a Dead Link or Bug to DIA:
[email protected]
Hosted by www.Geocities.ws

1