File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed
java_test/src/main/java/com/yiyun Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -10,29 +10,37 @@ public class JustTest {
1010 public JustTest () {
1111 System .out .println ("b....." );
1212 }
13+
1314 static {
1415 System .out .println ("c....." );
1516 }
1617
1718 public static void main (String [] args ) {
1819 JustTest justTest = new JustTest ();
19- System .out .println ("-----------------------" );
20+ System .out .println ("-----------------------" );
2021 int i = Runtime .getRuntime ().availableProcessors ();
2122 System .out .println ("i = " + i );
2223 }
24+
2325 @ Test
24- public void fun1 (){
26+ public void fun1 () {
2527 long i = 100_000_000_000L ;
2628 float v = 9.1f ;
2729 float v1 = 9.000f ;
28- System .out .println ( v % 1 == 0 );
29- System .out .println ( v1 % 1 == 0 );
30+ System .out .println (v % 1 == 0 );
31+ System .out .println (v1 % 1 == 0 );
3032 }
33+
3134 @ Test
32- public void fun (){
33- int i = ((6 - 3 ) >> 1 )+ 3 ;
35+ public void fun () {
36+ int i = ((6 - 3 ) >> 1 ) + 3 ;
3437 System .out .println ("i = " + i );
3538 }
36-
37-
39+
40+ //滑稽的大佬
41+ @ Test
42+ public void fun2 () {
43+ System .out .println (129 == 129 );
44+ }
45+
3846}
You can’t perform that action at this time.
0 commit comments