Do you know this example tricks?

C# Tutorial / Operator

The shortcut operators

Delphi / System

Check if we are running in a terminal client session

Delphi / Files

How to determine which Application is associated with a File Type

Delphi / System

Use a lightweight replacement for TRegistry

Silverlight / UI Controls

MediaElement Stretch

Java / Swing JFC

Hello World Swing

C++ Tutorial / Vector

For_each element in a vector apply custom function

Ruby / Hash

Hash has a class method [], which is called in either one of two ways

Java Tutorial / SWT

Returns an SWT point with the same coordinates as the specified AWT point (rounded to integer values)

Java Tutorial / J2ME

Use active and inactive Gauge

ASP.Net Tutorial / ADO Net Database

Filling Multiple DataTables

C# Tutorial / Class

Reference a static member variable without using the class name

Sample Android Codes

Android / Network

Http Request

Android / UI

Self Wrapper for List

Android / Hardware

Get Version Name with PackageManager

Android / UI

Android

Android / Date Type

A list of objects that can grow as required

Android / Network

Get Video from URL

Android / UI

Get ActivityManager

Android / UI

Basic example of using date and time widgets, android app TimePickerDialog android widget DatePicker

Android / UI

Use AbsListView OnScrollListener(AbsListView OnScrollListener), AbsListView#setOnItemScrollListener(AbsListView OnItemScrollListener)}

Android / Date Type

Get now in Date and Millis-seconds

Android / UI

Add some padding to keep the dialog borders away

Android / 2D Graphics

Finger Paint

Sample C# Codes

C# / XML

Gets all the child nodes of the node

C# / XML LINQ

Traversing Forward from the Current Node Using the NodesAfterSelf Method

C# / 2D Graphics

Add Line and Arc to Path

C# / Collections Data Structure

Compare two arrays and two lists

C# / WPF

Set TextBlock FontSize for Grid

C# / XML LINQ

Calling the ToString Method on an Element Produces the XML Tree

C# / Data Types

Some string operations

C# / Class Interface

Call class methods 2

C# / WPF

Display window as dialog

C# / LINQ

Use Aggregate Operators

C# / WPF

Define a GridSplitter and Horizontal Alignment Changed

C# / Data Types

How a derived class may override an existing enumeration in a base class

Sample Java Codes

Java / File Input Output

Determining If a ByteBuffer Is Direct

Java / GWT

Ribbon like ToolBar (Ext GWT)

Java / PDF RTF

Named Actions in PDF Document

Java / Collections Data Structure

Set which holds its members by using of WeakReferences

Java / Internationalization

Message Format for sentence

Java / Language Basics

How to use enum

Java / Swing JFC

A simple label for field form panel

Java / Internationalization

ISO 8859-2, a k a Latin-2

Java / Swing JFC

A simple frame containing a toolbar made up of several Buttons

Java / GWT

Long text cell renderer (Smart GWT)

Java / GWT

Use vertical panel

Java / Data Type

Checks if a Boolean value is true, handling null by returning false

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.