/*** @ Title: DataCate. java * @ Package: com. you. dao * @ Description: data type conversion * @ Author: You Haidong * @ date: 8:13:56, January 1, March 7, 2014 * @ Version V1.2.3 */package com. you. dao;/*** @ Class Name: DataCate * @ Description: * @ Author: youhaidong * @ date: march 7, 2014 8:13:56 */public class DataCate {/*** @ Title: main * @ Type: DataCate * @ date: March 7, 2014 8:13:56 * @ Description: * @ param args */public static void main (String [] args) {/*** I */int I = 0; /*** a */int a = I ++;/*** B */int B = I + '0 '; /*** c */int c = I;/*** d */int d = I --;/*** print a, B, c, d */System. out. println ("a:" + a + "\ n" + "B:" + B + "\ n" + "c: "+ c +" \ n "+" d: "+ d);/***** // System. out. println ("I ++:" + (I ++);/*****/System. out. println ("I --:" + (I --));}}
Running result:
a:0b:49c:1d:1i--:0
(1) I
Int I = 0;/*** the printed result is 0 */System. out. println ("I:" + I );(2) I ++
Int I = 0;/*** the printed result is 0 */System. out. println ("I ++:" + (I ++ ));(3) I --
Int I = 0;/*** the printed result is 0 */System. out. println ("I --:" + (I --));