Do you know this example tricks?

Java / Reflection

Load Class

Php / MySQL Database

Mysqli_free_result php

Ruby / File Directory

Specify absolute paths to create directories under other specific directories

C# / WPF

Fixed Tiles

VB.Net / Data Types

Perform a string sort using the current culture with custom comparer

C# Tutorial / Class

Internal sealed class

Java Tutorial / Development

A simple logging facility

Java / Data Type

Converts a Boolean to a boolean handling null

Java Tutorial / Development

Generic LRU Cache

Java / Util

Using a BitSet to demonstrate the Sieve of Eratosthenes

VB.Net / WPF

Dynamic Clipping

C# / Windows

Set mouse and keyboard hooks

Sample Android Codes

Android / Media

Call prepare for MediaPlayer before starting

Android / 2D Graphics

Draw text

Android / 2D Graphics

Translate Canvas

Android / UI

Using ListActivity

Android / File

Trims down obj files, so that they may be parsed faster later on

Android / UI

Using TableLayout and TableRow to display color

Android / Media

Set URL data source for MediaPlayer

Android / UI

Demonstrates a nesting layouts to make a form

Android / UI

Gallery View

Android / Core Class

Check System Feature

Android / UI

Using GridView to display images

Android / Network

Email vis Intent

Sample C# Codes

C# / Generics

Add user-defined object to generic Collection

C# / XML

Get Attribute and return Int64 or throw exception

C# / GUI Windows Form

DateTimePicker Format

C# / XML LINQ

Gets the XNamespace object that corresponds to the xmlns URI (http

C# / Language Basics

Passing parameters by reference

C# / Development Class

Define multiline patterns

C# / Data Types

Boxing struct object

C# / Data Types

Some string operations

C# / Language Basics

Lifetime of outer variables is aligned with the delegate

C# / WPF

Scale a ListBox

C# / WPF

ListBox binds to the people collection, and sets the DataTemplate to use for displaying each item

C# / Development Class

Replace char in a StringBuilder object

Sample Java Codes

Java / XML

Set or replace the text value

Java / Util

Server Side form validation using regex statements

Java / GWT

Adding controls to window header (Smart GWT)

Java / XML

Convenience methods for working with the DOM API

Java / SWT Jface Eclipse

SWT Browser

Java / Collections Data Structure

Add values to TreeSetString

Java / Database SQL JDBC

Demo PreparedStatement Set Time

Java / Data Type

Convert from ASCII code to String

Java / Collections Data Structure

Check if a particular element exists in Java HashSet

Java / Util

Threaded visual counters

Java / PDF RTF

Drawing Text with RGB Fill

Java / Collections Data Structure

Single linked list

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.