Do you know this example tricks?

Java / GWT

Grid Record Remove Sample (Smart GWT)

MySQL / Command Mysql

To flush the logs when creating a backup file

C++ / Set Multiset

Set_difference and back_inserter

Delphi / API

Trapping for when a user is done resizing a window

C# Tutorial / Data Type

Parsing

Java Tutorial / Data Type

Round number to fewer decimals

VisualBasic Script / Excel

All properties of PageSetup

JavaScript Tutorial / Window

Scroll the window by using window scrollBy

Java Tutorial / Swing

Show tick marks

C# / Data Types

Format float point value as fixed point

Java / Database SQL JDBC

Print the stack trace for a SQLException to STDERR

VB.Net / Development

Convert ToUInt16 (String, Int32) converts string in a base to 16-bit unsigned integer

Sample Android Codes

Android / Development

Get attribute value

Android / Hardware

Export the current database to the SDcard

Android / UI

Get ActivityManager

Android / UI

Use an indeterminate progress indicator in the windows title bar

Android / Network

Sends an SMS message to another device

Android / UI

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

Android / Core Class

Demonstrates adding notifications to the status bar

Android / Core Class

Backup restore

Android / UI

Extends ViewGroup

Android / UI

Enable Javascript for WebView

Android / UI

Append and set text to TextView

Android / Date Type

Join Collection of String

Sample C# Codes

C# / XML

DOM feature check

C# / File Stream

Name Without Extension

C# / GUI Windows Form

Form Menu

C# / Internationalization

Enumerates all available cultures

C# / Event

Mouse left click, right click, middle click, hover

C# / 2D Graphics

Smoothing Paint

C# / WPF

Using CommandBinding and ExecutedRoutedEventHandler to bind Application event to an event handler method

C# / XML LINQ

Calling the First Attributes Prototype

C# / Class Interface

Add a method to Building

C# / Reflection

FieldInfo FieldType Property gets the type of this field object

C# / GUI Windows Form

Creating a menu on the fly

C# / LINQ

Query by position

Sample Java Codes

Java / JDK

Create a file and change its attribute to readonly

Java / Data Type

Parse string date value with default format

Java / Collections Data Structure

This program demonstrates a triangular array

Java / PDF RTF

Cell Alignment Middle

Java / Spring

SimpleJdbcInsert With BeanPropertySqlParameterSource

Java / J2ME

DatagramSender

Java / PDF RTF

Cell Alignment Justified

Java / Event

Demonstrating the KeyListener

Java / 2D Graphics GUI

Crop Image

Java / Network Protocol

Connects to an URL and displays the response header data and the first 10 lines of the requested data

Java / JPA

Start Transaction and Commit

Java / Servlets

Use URL rewrite to save session data

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.