Java代码 1.
# e# Y/ j/ U$ e. m9 B0 X, `' {7 K- I1 F 2./**
/ C4 ^# a0 @5 K1 U 3. * 测试回车换行符:rn
7 J2 E- ]" h4 R D# i* y 4. * TestEnterWrap/ q: m8 R; e) m2 y: _+ U# `
5. * Author:广凌风, S2 Z5 I. f% W8 @( T4 z N
6. * Jul 8, 2010 9:25:34 AM
, ]& i# m4 O! K6 F2 O 7. */
* y" f6 d8 Q p0 x8 G 8.public class TestEnterWrap {; g+ q$ d, c0 K) ~
9.
9 G& B3 Z, y+ j4 y7 ` 10. /**2 G3 ]% o! g8 l9 S
11. * TestEnterWrap.main()
& B& f+ f2 F5 p E% H# B 12. * @param args
1 }5 e* r# H/ I/ N# x 13. * @return void9 d; z3 N# i( |+ ?! W$ |& Q- H
14. * Author:Junliang Lin
& d, u! D, l5 k+ e* {( w$ @: ? 15. * Jul 8, 2010 9:25:12 AM& ~( R D6 C7 y1 Q
16. */! I9 x* s% f$ |- f. p6 E
17. public static void main(String[] args) throws Exception{; c& m! |, m3 l0 |5 f+ r/ R
18. System.out.print("Input a char:");- q! X( p4 E9 g4 T3 P
8 I7 P" Q. W2 W+ L( f 19. |