Do you know this example tricks?

Java Tutorial / Regular Expressions

Read regular expression from console

Php / HTML

Dynamic HTML tags

JavaScript DHTML / GUI Components

Vertical scroll (IE)

C# Tutorial / String

Search any characters in a string

Java / 3D Graphics

A basic hierarchical model of the top part of a human torso

Java Tutorial / XML

A Method for Inserting a New Entry in a List

C# by API / System Windows Forms

OpenFileDialog Multiselect

Delphi / System

A simple component to reboot, shutdown and logoff a system

VB.Net / Data Types

BigInteger ToString Method (String, IFormatProvider)

Flex / Components

Use Label for mark TextInput

Java by API / Java Util

Catch MissingResourceException

MySQL / Function

MySQL replace command

Sample Android Codes

Android / 2D Graphics

Draw animated gif

Android / UI

Activity configuration changed event

Android / Date Type

Parse Date

Android / Date Type

Converts given hex string to a byte array (ex

Android / 2D Graphics

Get Drawable From Web Operation

Android / Game

Extends View to create game board

Android / Database

SQLite based diary app

Android / Game

Vector2d structure

Android / Core Class

Get Application File Path

Android / Date Type

Given a number, round up to the nearest power of ten times 1, 2, or 5 The argument must be strictly positive

Android / 2D Graphics

Get Texture From Bitmap Resource

Android / UI

Dialog Helper

Sample C# Codes

C# / WPF

Rotates the Polyline 45 degrees about the point (25,50)

C# / Internationalization

Determines whether the specified Object is equal to the current UTF8Encoding object

C# / Language Basics

Demonstrating StringBuilder AppendFormat

C# / Reflection

Type GetConstructors

C# / Class Interface

Illustrates method overloading

C# / 2D Graphics

Create Color Object from RGB value

C# / Data Types

Converts double to string using the specified format

C# / LINQ

Uses Average to get the average of all values of an integer array

C# / Collections Data Structure

Sum the values on a diagonal of a 3x3x3 matrix

C# / WPF

RadialGradientBrush SpreadMethod=Repeat

C# / WPF

The Opacity Mask Use the opacity mask brush as a fill to show what it looks like

C# / LINQ

Prints the customer number and orderID for every order in the list

Sample Java Codes

Java / File Input Output

Read a file and print, using LineReader and System out

Java / Reflection

Field with annotations

Java / Data Type

This is same as MEDIUM

Java / Regular Expressions

Match address regular expressions

Java / Reflection

Unqualified names

Java / Collections Data Structure

Get the index and last index of byte type array

Java / Data Type

Convert from decimal to hexadecimal with leading zeroes and uppercase

Java / SWT Jface Eclipse

Prevent Tab from traversing out of a control

Java / Learning

Switch Statements

Java / Class

Returns a reference to a file with the specified name that is located somewhere on the classpath

Java / Class

Holds a sequence of Objects

Java / 2D Graphics GUI

A geometric path constructed from straight lines, quadratic and cubic (Bezier) curves and elliptical arc

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.