Do you know this example tricks?

C# / LINQ

Grouped Average

Java / Collections Data Structure

Appends an integer to an integer array

Java Tutorial / File

Read and return the entire contents of the supplied InputStream

VB.Net / WPF

A Polyline

Oracle PLSQL / Stored Procedure Function

Call function in dbms_output put_line

C# by API / System Linq

Enumerable Empty

C# by API / System Data Oledb

OleDbTransaction Rollback()

JavaScript DHTML / Jquery

Wraps a newly created tree of objects around the spans

C# Tutorial / Development

Read keystrokes from the console by using ReadKey()

Java Tutorial / Collections

Copy some items of an array into another array

C# Tutorial / File Directory Stream

Use FileStream to read a file byte by byte

ASP.Net Tutorial / ASP Net Controls

Convert input in TextBox into decimal

Sample Android Codes

Android / UI

Baseline nested

Android / UI

Bars View

Android / UI

Round ProgressBar vs Flat ProgressBar

Android / UI

Fragment Dialog

Android / UI

Using Media Store Activity

Android / UI

Getset Gallery Show Mode

Android / Game

Rotate Matrix

Android / User Event

Load Gesture Libraries

Android / UI

Using DatePicker

Android / UI

Adding two controls to LinearLayout

Android / Date Type

Get the string of the date using format yyyy-MM-dd HH

Android / User Event

Key event listener

Sample C# Codes

C# / XML

Copy everything from the XPathNavigator to writer

C# / XML

LoadXml

C# / 2D Graphics

Measure Font height and draw surrounding Rectangle

C# / Development Class

This module contains the recursive descent parser that does not use variables

C# / Design Patterns

Composite Pattern Demo

C# / Internationalization

Encoding Class represents a character encoding

C# / File Stream

Checks if a file have write permissions

C# / File Stream

Gets the relative path from a source to a target path

C# / Collections Data Structure

Red Black Tree

C# / WPF

Put more than one Object to one Grid Cell

C# / WPF

Create Label controls that have access keys and support text wrapping

C# / File Stream

Writes out a string to a file

Sample Java Codes

Java / PDF RTF

Writes text in irregular columns that can be added at an absolute position

Java / Regular Expressions

Regular Expression Replace

Java / Swing JFC

List HTML Values

Java / Ant

Jar file

Java / Collections Data Structure

Compact HashSet

Java / Collections Data Structure

A CompactHashSet implements the set interface more tightly in memory and more efficiently than Javas java util

Java / Swing JFC

Listening for Value Changes in a JSlider Component

Java / GWT

Put complex control onto a dialog (Smart GWT)

Java / Swing JFC

Actions MenuBar

Java / Development Class

Output current time

Java / Apache Common

HashMap Example 1

Java / SWT Jface Eclipse

OLE and ActiveX example snippet

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.