Do you know this example tricks?

Java / Awt

Demonstrating CardLayout

Flex / Graphics

Rotate a Button with Rotate3D

Flex / Components

List control uses default item renderer to display strings

Java Book / Collection

0333 Check for frequency

VB.Net / XML

XPathNavigator InsertElementAfter

C# / Reflection

Get Property from Property path

C# Tutorial / GUI Windows Forms

Irregular form

C# by API / System

DateTime ToLongTimeString()

Java / XML

Validating schema

JavaScript DHTML / Smartclient

Update label content

PostgreSQL / Data Type

Using Point data type in a function

Java Tutorial / Database

Cancel Updates to an Updatable ResultSet

Sample Android Codes

Android / UI

Drag and move a dot

Android / Network

NetworkInfo State

Android / UI

Use AlertDialog to inform exception

Android / Date Type

Pad Front

Android / UI

Use an indeterminate progress indicator in the windows title bar

Android / UI

Using TimePicker and setOnTimeChangedListener

Android / Development

Browse through Wiktionary content

Android / UI

Dialog Multiple Choice Cursor

Android / Hardware

A light pool of objects that can be resused to avoid allocation

Android / Hardware

Screen Orientation

Android / UI

Get value from EditText

Android / Core Class

Create a new directory on external storage

Sample C# Codes

C# / Data Types

Converts Decimal to the 32-bit unsigned integer

C# / Date Time

Use the ToString() method to convert a DateTime to a string

C# / LINQ

Uses a compound orderby to sort a list of products, first by category, and then by unit price, from highest to lowest

C# / XML LINQ

Updating the Document Type

C# / XML

DeserializesSerializes an xml document back into an object

C# / XML LINQ

XAttribute Value gets or sets the value of this attribute

C# / Reflection

Determines whether any custom attributes are applied to an assembly

C# / Components

Auto progress bar

C# / Development Class

Illustrates how to read a string entered using the keyboard

C# / Language Basics

Declaring a reference type variable and creating an object the variable will reference

C# / File Stream

Copy as much data as possible for a read operation

C# / XML

Get Bool Attribute Or Throw exception

Sample Java Codes

Java / SWT Jface Eclipse

MessageBox Example

Java / Servlets

Cookie Util

Java / Data Type

RoundingMode CEILING

Java / Awt

Drawing Polygons

Java / JSP

Using a Literal

Java / Swing Components

Hyperlink Label

Java / JNDI LDAP

How to create an initial context to an LDAP server using an LDAPS URL

Java / GWT

XPath binding allows declarative integration with web services (Smart GWT)

Java / 2D Graphics GUI

TextAttribute FOREGROUND

Java / Collections Data Structure

Two double value arrays are almost equal

Java / XML

Print Tree node

Java / Threads

Thread Pool Test

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.