Do you know this example tricks?

VisualBasic Script / Word

Changes all bold formatting in the open document named Example doc to italic formatting

Java / Data Type

This class allows a number to be easily formatted as a binary number

C++ Tutorial / Vector

Assign elements in int array to vector

Java / Data Type

Java SimpleDateFormat Class Example(MMddyyyy)

Flex / Event

Pass Event object to submitForm() handler function and specifies it as type MouseEvent

Delphi / Graphic

Graphical Progress Bar for Delphi applications Partial Continuous Move

VB.Net Tutorial / WPF

ImageBrushs tiles are set to 50% by 50% of the output area

XML Tutorial / XSLT StyleSheet

Demonstrate different ways of setting xsl

Oracle PLSQL Tutorial / SQL PLUS Session Environment

Set timing on

C# Tutorial / GUI Windows Forms

Owner Drawn MenuItem

C# / Network

Output webpage content

C++ Tutorial / Language Basics

Use Namespace to organize functions

Sample Android Codes

Android / UI

List selection event

Android / UI

More than one Activity

Android / Network

Restful web service task

Android / Date Type

Convert a byte[] array to readable string format This makes the hex readable!

Android / File

Read InputStream fully to a string

Android / 2D Graphics

OpenGL Sprite Text Activity

Android / Network

Launch the email intent

Android / 2D Graphics

Font Test Activity

Android / Game

A simple runnable that updates the position of each sprite on the screen every frame by applying a very simple gravity and bounce sim

Android / Hardware

Using Vibrator

Android / Game

Vector3

Android / Media

Play Mp3 file from a Url

Sample C# Codes

C# / XML

Adds an XmlAttribute to a XmlNode

C# / WPF

UI Element Mouse Clicked Events

C# / 2D Graphics

Make red and blue pens

C# / Collections Data Structure

Indicate, by using parentheisis, the last occurence of the

C# / 2D Graphics

Line Cap style

C# / GUI Windows Form

Printer Caps 2

C# / Data Types

Int binary

C# / Language Basics

StringBuilder foreach

C# / Data Types

Convert double to byte

C# / File Stream

File ReadLines Method

C# / LINQ

Use Linq Cast to convert array to IEnumerable

C# / Data Types

Initializes a new instance of the Complex structure using the specified real and imaginary values

Sample Java Codes

Java / Swing JFC

Bounded TextField

Java / Velocity

For each loop controled by Range function

Java / Reflection

Deal with enum type and its method

Java / Data Type

Reverse the split operation

Java / XML

XML constants

Java / Data Type

Test if the current character is a space

Java / JSP

Joining Tables

Java / File Input Output

Use BufferedReader to Read and process lines from console

Java / Swing Components

Moving label using arrow keys

Java / Network Protocol

Connects to a server at a specified host and port It reads text from the console and sends it to the server

Java / SWT Jface Eclipse

Demonstrates ControlListeners

Java / Internationalization

Behaves similiar to BreakIterator getWordInstance() but handles line break delimeters as simple whitespaces

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.