Do you know this example tricks?

Ruby / Language Basics

A commonly used shortcut uses arrays to quickly load a collection of libraries at once

C# / GUI Windows Form

New TextBox(), Localtion, Name, TabIndex, Text

Visual C++ .NET / Statement

Catch custom exception and then general exception

Java / PDF RTF

Cell Minimum Height

JavaScript Reference / Javascript Properties

DefaultValue Example

Java / File Input Output

Demonstrate sequenced input

Php / Strings

String token

Delphi / Files

How to Compress, Decompress a Stream

C# / Regular Expressions

Use regualr expression to check if a string is a GUID

Java / Spring

Create XmlBeanFactory from ClassPathResource

Flex / Development

Is debug mode

Delphi / System

How to auto hide IDE windows when codingdesigning

Sample Android Codes

Android / Development

Link resource with @

Android / 2D Graphics

Extract Thumbnail

Android / UI

Set Layout Parameters in your code

Android / Network

Access a Web service using GET

Android / UI

Using LinearLayout for Activity

Android / Date Type

Get short and long date String

Android / Network

Used to compress URL using the bit ly service

Android / Security

Download from URL and MD5 check

Android / Date Type

Gets a EEE, dd MMM yyyy hh

Android / 2D Graphics

Set text to use bold and italic font style

Android / UI

Using LinearLayout LayoutParams

Android / File

String to InputStream

Sample C# Codes

C# / Data Types

Use the decimal type to compute a discount

C# / Data Types

Compute the initial investment needed to attain a known future value given

C# / Date Time

Add Business Days

C# / Collections Data Structure

Returns a string representation of the char array

C# / Class Interface

Format data in ToString method

C# / WPF

Print Without User Intervention

C# / Collections Data Structure

Sorts and array in ascending order, then reverses the elements

C# / 2D Graphics

Control Palette

C# / WPF

Add selected file to ListBox

C# / XML LINQ

Different Node Value Types Retrieved via Casting to the Node Values Type

C# / WPF

Margin

C# / File Stream

Copy Stream and close

Sample Java Codes

Java / XML

Write DOM out

Java / 2D Graphics GUI

Transform Translation and Rotation

Java / Development Class

Get string value from clipboard

Java / Language Basics

How to write Comments

Java / GWT

Using GridCellRenderer to format number (Ext GWT)

Java / 3D Graphics

ExBluePrint - illustrate use of background images

Java / File Input Output

Strings -- extract printable strings from binary file

Java / JSP

EL and Complex JavaBeans

Java / Network Protocol

Subclasses CommPortOpen and adds sendexpect handling for dealing with Hayes-type modems

Java / Swing JFC

Set Frame Location By Platform

Java / Collections Data Structure

Hash map using String values as keys mapped to primitive int values

Java / Advanced Graphics

Blur an Image

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.