Run Java with .bat
click to see the emample
Format Scanner JOptionPane
format() demo
show code...
hide code...
Scanner demo
show code...
hide code...
JOptionPane
show code...
hide code...
File Reading using Scanner
show code...
hide code...
Loops, Arrays, Methods
Loop Demo (break, continue)
show code...
hide code...
Methods
click to see Methods examples
Collections Methods
click to see Collections Methods examples
File input/output & Exceptions
Exceptions demo
show code...
hide code...
Files PPT presentation
click to see Files PPT presentation
Files Demo
show code...
hide code...
Object Oriented Programming
Intro to Objects
Intro to OO
Candy Eaters example
show code...
hide code...
UML and Encapsulation
a_19_UML and Encapsulation lesson.doc
Overloading toString()
a_21_Overloading lesson.doc
Inheritance
a_22_Inheritance.doc
Static non-static variables and methods
23_Static_Methods_Variables.doc
Fraction demo
show code...
hide code...
Array List Class
a_24_DynamicArrays_andArrayLists.doc
Array Lists demo
show code...
hide code...
Sorting objects demo
show code...
hide code...
More OOP Examples. Polymorphism.
a_17_OOP_definitions_Polymorphism.doc
Serialization with Inheritance
a_18_Java_Serialization_with_Inheritance.doc
GUI (Graphical User Interface)
Empty Frame
show code...
hide code...
Shapes and Colours
Shapes_Colours.doc
Frame with squares
show code...
hide code...
Frame with squares and images
show code...
hide code...
Set font
show code...
hide code...
Use array of fonts
show code...
hide code...
Frame with a timer(simple moving shapes);
show code...
hide code...
Random Art Timer
show code...
hide code...
Comming soon
show code...
hide code...
Layouts
Flow Layout
show code...
hide code...
Border Layout
show code...
hide code...
Grid Layout
show code...
hide code...
Manual positioning
show code...
hide code...
Frame with Several Panels
show code...
hide code...
Comming soon
show code...
hide code...
Comming soon
show code...
hide code...
Events
Action Listener
show code...
hide code...
Mouse Listener Demo 1
show code...
hide code...