Do you know this example tricks?

JavaScript Reference / Javascript Methods

ElementFromPoint() is applied to

Java / EJB3

Mark Ejb Method With Our Own Annotation

JavaScript DHTML / HTML

Mouse in image and out

Delphi / Activex OLE

How to get the html code for the parent of an activex form

VB.Net Tutorial / Data Type

NewLine sign

C++ Tutorial / STL Algorithms Sorting

Use std

C / Data Type

Use register int in function

Visual C++ .NET / Generics

Generic function and generic array

Perl / File

Using store function to save hash value to a file

Delphi / Algorithm Math

Generating random numbers

C / String

Storing and displaying proverbs in order of length

Oracle PLSQL / System Tables Views

Search DBA_OBJECT_SIZE for package and procedure size

Sample Android Codes

Android / UI

Demonstrates using nextLeft, nextRight, nextUp and nextDown to get focus behavior that would be difficult with default focus

Android / Date Type

Space trim

Android / Core Class

Assets Helper

Android / Date Type

Value equals in a range, and ensure value inside a range

Android / Media

Call prepare for MediaPlayer before starting

Android / UI

Append and set text to TextView

Android / UI

Find user control by using findViewById

Android / 2D Graphics

Draw Bitmap on Canvas with Matrix

Android / Media

Play a sound

Android / Network

Is WiFi Connected

Android / UI

Using Icon in Menu

Android / UI

Import android app AlertDialog

Sample C# Codes

C# / File Stream

Binary Writer Reader

C# / 2D Graphics

Pen dash pattern

C# / File Stream

Calculates the size of a directory and its subdirectories, if any, and displays the total size in bytes

C# / GUI Windows Form

CheckBox click (SelectedUnselected) event

C# / WPF

Wrap collection based resource in a CollectionViewSource

C# / Date Time

Create a new TimeSpan to the specified number of ticks

C# / Development Class

Get the message strings from an exception

C# / Development Class

Create Guid

C# / Language Basics

Line number

C# / WPF

Use DispatcherTimer to change Dependency Property

C# / Data Types

Conversions of Classes (Reference Types)

C# / Collections Data Structure

Ensures that the float array cannot hold more than maxCapacity elements

Sample Java Codes

Java / Apache Common

Implement equals method using commons-lang

Java / GWT

Set tab alignment (Smart GWT)

Java / Collections Data Structure

String array and output to console

Java / Swing JFC

The text is right-justified and top-aligned

Java / Generics

Create a typesafe copy of a raw set

Java / Spring

Set SimpleNativeJdbcExtractor to JdbcTemplate

Java / Ant

Create folder

Java / Class

Demonstration of a simple constructor

Java / Design Pattern

Adapter Pattern - Example

Java / Servlets

Log Filter

Java / XML

Extract the textual content from a Node

Java / Swing JFC

Expense Table

Purposes of this site

Includes detail codes for any language desired for beginners

  • Benefits
  • C#
  • Java
  • Andorid
  • Xml
  • Databases

Quick and simple examples suitable for everyone


The content of the site is updated from time to time. Does not require membership. It is prepared for students to assist in the fields of computer engineering and software engineering.