Do you know this example tricks?

C++ / Language

Catch all types of exceptions

VB.Net / Development

Convert ToSingle (Int64) converts 64-bit signed integer to single-precision floating-point number

Java Tutorial / File

Create DataOutputStream out of BufferedOutputStream

JavaScript DHTML / Jquery

To highlight a clicked word in the paragraph

Php / Authentication

Complete, simple working example of login screen and check on a unique

JavaScript DHTML / Ext JS

Preset value on a textbox

C# by API / System Windows Forms

GroupBox Controls

C# Tutorial / GUI Windows Forms

PrintDocument

C# Tutorial / Regular Expression

RegEx Group

C++ / List

Loop through list back and forth

VB.Net / WPF

Create a ListBoxItem, set font, content, add the ListBoxItem to the ListBox

Java Tutorial / SWT

Create a multiple-line text field

Sample Android Codes

Android / UI

Dialog Multiple Choice Cursor

Android / Network

Data Send Utils

Android / Core Class

Dynamically defined), space efficient event logging to help instrument code for large scale stability and performance monitorin

Android / UI

Fill data from arrays xml to Spinner

Android / UI

Example of removing yourself from the history stack after forwarding to another activity

Android / Date Type

Get now in Date and Millis-seconds

Android / Media

Call prepare for MediaPlayer before starting

Android / Animation

XML for Fade in animation

Android / UI

Extends CursorAdapter implements Filterable

Android / Date Type

Utility class for formatting and parsing the various date formats we expect to encounter

Android / UI

Extends Activity implements OnClickListener

Android / User Event

Hide Keyboard

Sample C# Codes

C# / Collections Data Structure

Priority Queue (2)

C# / GUI Windows Form

RichTextBox Font bold, italic

C# / Class Interface

Virtual keyword can be used to start a new inheritance ladder

C# / File Stream

InternalName

C# / Collections Data Structure

Inverts all the bit values in the current BitArray

C# / LINQ

Where Prototype

C# / Security

Get X509Certificate2

C# / GUI Windows Form

Focus Form

C# / Class Interface

Access to a private field through a property

C# / Development Class

Enumerating Registry Keys

C# / GUI Windows Form

User Events

C# / WPF

Multiple geometries

Sample Java Codes

Java / Servlets

Database and Servlet

Java / Network Protocol

HTML parser based on HTMLEditorKit ParserCallback

Java / Swing JFC

An example that shows lots of little UndoManager details

Java / SWT Jface Eclipse

Image Analyzer in SWT

Java / SWT Jface Eclipse

Display busy cursor during long running task

Java / Development Class

Provides utility methods to Base64 encode data

Java / Data Type

Data type Conversion Util

Java / EJB3

Use JBoss Enterprise Beans Session Config

Java / 2D Graphics GUI

Image Effect

Java / Database SQL JDBC

Insert rows

Java / Apache Common

Basic Authentication For JSP Page

Java / Development Class

A representation of the command line arguments passed to a Java class main(String[]) method

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.