Do you know this example tricks?

MSSQL / Select Query

Case when and else

Java Tutorial / Swing

Dynamically update the appearance of a component

Oracle PLSQL / PL SQL

Use exception handler to mark success flag

Php / Data Type

Sorting Multiple Arrays

Java Tutorial / Generics

Generic method maximum returns the largest of three objects

Java / Reflection

Loading a Class That Is Not on the Classpath

Silverlight / Graphics

A basic RadialGradientBrush

Delphi / Examples

Using a c++ dll in delphi [activex control]

C# Tutorial / WPF

Use StackPanel to Hold RadioButtons

C / Code Snippets

Output a string to stdout how to use puts

Java / SWT Jface Eclipse

GridLayout Example

C++ / Algorithm

Determine whether one set is completely contained in another set

Sample Android Codes

Android / Core Class

Example that shows finding a preference from the hierarchy and a custom preference type

Android / Security

Md5 Hash and MessageDigest

Android / Network

Start Html Email Intent

Android / Media

Set URL data source for MediaPlayer

Android / UI

Render Script Demo

Android / Network

Timeout Service

Android / Core Class

Is Storage ReadableWritable

Android / UI

Using ImageView to display Image

Android / Media

Sound Pool Demo

Android / 2D Graphics

Draw Bitmap on Canvas

Android / 2D Graphics

Rotate a Bitmap

Android / UI

Layout Radio buttons with RadioGroup

Sample C# Codes

C# / Development Class

Convert bytes to UInt32

C# / WPF

Using an ImageBrush

C# / GUI Windows Form

Creating an event for a component

C# / File Stream

Read all bytes from GZipStream

C# / Reflection

Searches for the specified property, using the specified binding constraints

C# / WPF

Matrix3D TranslatePrepend

C# / Data Types

Split a string delimited by another string and return 2 elements

C# / Development Class

Length and Indexer

C# / Development Class

NET Frameworks Overview

C# / File Stream

Read ASCII string from byte buffer

C# / LINQ

Contains, Any return a bool value

C# / ADO Database

Catch Sql command exceptions

Sample Java Codes

Java / Swing JFC

Tree Cell Renderer

Java / File Input Output

Create a simple ZIP File

Java / Development Class

System out printf(The DATE is %Tcn, new Date() )

Java / Swing JFC

Selecting different looks and feels

Java / Database SQL JDBC

Convert into java sql Time (or into java util Calendar)

Java / JSTL

Presenting database content using tags

Java / File Input Output

Searches case sensitively in a file

Java / Database SQL JDBC

Load driver for SQL Server

Java / Reflection

Getting the Superclass of an Object

Java / Collections Data Structure

Demonstrate the Hashtable class, and an Enumeration

Java / Swing JFC

Escape Key close Dialog

Java / Swing JFC

Display an icon when the cursor is moved over the checkbox This is called the rollover icon

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.