-
Notifications
You must be signed in to change notification settings - Fork 0
/
JavaSE12-Class.html
1341 lines (745 loc) · 61.8 KB
/
JavaSE12-Class.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head hexo-theme='https://volantis.js.org/#2.1.2'>
<meta charset="utf-8">
<!-- SEO相关 -->
<!-- 渲染优化 -->
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="HandheldFriendly" content="True" >
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- 页面元数据 -->
<title>JavaClass - CRainyDay</title>
<meta name="keywords" content="JavaSE,Java">
<meta name="description" content="Java常用类">
<!-- feed -->
<!-- import meta -->
<!-- link -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/waves.min.css">
<link rel="shortcut icon" type='image/x-icon' href="https://cdn.jsdelivr.net/gh/crainyday/blog@master/favicon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/APlayer.min.css">
<!-- import link -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/crainyday/blog@master/css/style.css">
<script>
function setLoadingBarProgress(num) {
document.getElementById('loading-bar').style.width=num+"%";
}
</script>
<!-- ba -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?bf368df5385d5be3472f3155e4cdb303";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="loading-bar-wrapper">
<div id="loading-bar"></div>
</div>
<header class="l_header shadow floatable blur">
<div class='wrapper'>
<div class='nav-sub container--flex'>
<a class="logo flat-box"></a>
<ul class='switcher h-list'>
<li><a class="s-comment flat-btn fas fa-comments fa-fw" target="_self" href='javascript:void(0)'></a></li>
<li><a class="s-toc flat-btn fas fa-list fa-fw" target="_self" href='javascript:void(0)'></a></li>
</ul>
</div>
<div class="nav-main container container--flex">
<a class="logo flat-box" target="_self" href='/'>
<i class='fas fa-home'></i>
CRainyDay
</a>
<div class='menu navigation'>
<ul class='h-list'>
<li>
<a class="flat-box" href=/categories/
id="categories"
>
<i class='fas fa-folder-open fa-fw'></i>
分类
</a>
</li>
<li>
<a class="flat-box" href=/archives/
id="archives"
>
<i class='fas fa-archive fa-fw'></i>
归档
</a>
</li>
<li>
<a class="flat-box" href=/tags/
id="tags"
>
<i class='fas fa-tags fa-fw'></i>
标签
</a>
</li>
<li>
<a class="flat-box" href=/friends/
id="friends"
>
<i class='fas fa-link fa-fw'></i>
友链
</a>
</li>
<li>
<a class="flat-box"
>
<i class='fas fa-ellipsis-v fa-fw'></i>
更多
</a>
<ul class="submenu">
<li>
<a class="flat-box" href=/about/music.html
id="aboutmusic.html"
>
<i class='fas fa-music fa-fw'></i>
往后余生
</a>
</li>
<hr>
<li>
<a class="flat-box" href=/bbs/
id="bbs"
>
<i class='fas fa-comment-alt fa-fw'></i>
留言
</a>
</li>
<hr>
<li>
<a class="flat-box" href=/about/
id="about"
>
<i class='fas fa-info-circle fa-fw'></i>
关于
</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="m_search">
<form name="searchform" class="form u-search-form">
<i class="icon fas fa-search fa-fw"></i>
<input type="text" class="input u-search-input" placeholder="搜索" />
</form>
</div>
<ul class='switcher h-list'>
<li><a class="s-search flat-btn fas fa-search fa-fw" target="_self" href='javascript:void(0)'></a></li>
<li><a class="s-menu flat-btn fas fa-bars fa-fw" target="_self" href='javascript:void(0)'></a></li>
</ul>
</div>
</div>
</header>
<ul class="menu-phone navigation white-box">
<li>
<a class="flat-box" href=/
id="home"
>
<i class='fas fa-home fa-fw'></i>
博客
</a>
</li>
<li>
<a class="flat-box" href=/archives/
id="archives"
>
<i class='fas fa-archive fa-fw'></i>
归档
</a>
</li>
<li>
<a class="flat-box" href=/categories/
id="categories"
>
<i class='fas fa-folder-open fa-fw'></i>
分类
</a>
</li>
<li>
<a class="flat-box" href=/friends/
id="friends"
>
<i class='fas fa-link fa-fw'></i>
友链
</a>
</li>
<li>
<a class="flat-box" href=/bbs/
id="bbs"
>
<i class='fas fa-comment-alt fa-fw'></i>
留言
</a>
</li>
<li>
<a class="flat-box" href=/about/
id="about"
>
<i class='fas fa-info-circle fa-fw'></i>
关于
</a>
</li>
</ul>
<script>setLoadingBarProgress(40);</script>
<div class="l_body nocover">
<div class='body-wrapper'>
<div class='l_main'>
<article id="post" class="post white-box shadow floatable article-type-post" itemscope itemprop="blogPost">
<section class='meta'>
<a title='JavaClass' href='/JavaSE12-Class.html'><img class='thumbnail' src='https://cdn.jsdelivr.net/gh/crainyday/blog@master/imgs/more/more04.png'></a>
<div class="meta" id="header-meta">
<h1 class="title">
<a href="/JavaSE12-Class.html">
JavaClass
</a>
</h1>
<div class='new-meta-box'>
<div class='new-meta-item author'>
<a href="https://crainyday.gitee.io" rel="nofollow">
<img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/crainyday/blog@master/avatar.png">
<p>crainyday</p>
</a>
</div>
<div class='new-meta-item category'>
<a href='/categories/Java/JavaSE/' rel="nofollow">
<i class="fas fa-folder-open" aria-hidden="true"></i>
<p>Java / JavaSE</p>
</a>
</div>
<div class="new-meta-item date">
<a class='notlink'>
<i class="fas fa-edit" aria-hidden="true"></i>
<p>发布于:2019年3月26日</p>
</a>
</div>
<div class="new-meta-item wordcount">
<a class='notlink'>
<i class="fas fa-keyboard" aria-hidden="true"></i>
<p>字数:1.8k字</p>
</a>
</div>
<div class="new-meta-item readtime">
<a class='notlink'>
<i class="fas fa-hourglass-half" aria-hidden="true"></i>
<p>时长:8分钟</p>
</a>
</div>
</div>
<hr>
</div>
</section>
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<p><font style='font-size:1.2em;font-weight:bold;'>Java常用类</font></p>
<a id="more"></a>
<ul>
<li>String StringBuffer StringBuilder</li>
<li>System Date SimpleDateFormate Calendar</li>
<li>Math BigInteger BigDecimal</li>
</ul>
<h2 id="一-字符串">一.字符串</h2>
<p>String: 代表不可变的字符序列. 底层使用char[]存放. String 是final的.</p>
<p>StringBuffer: 代表可变序列的字符序列, 可以对字符串内容修改. 底层也是char[]存放</p>
<h3 id="1-String内存解析">1.String内存解析</h3>
<details>
<summary>
One More Thing 👇
</summary>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span></span>{</span><br><span class="line"> String str1 = <span class="string">"JavaEE"</span>;</span><br><span class="line"> String str2 = <span class="string">"JavaEE"</span>;</span><br><span class="line"> String str3 = <span class="keyword">new</span> String(<span class="string">"JavaEE"</span>);</span><br><span class="line"> String str4 = <span class="string">"JavaEE"</span> + <span class="string">"Android"</span>;</span><br><span class="line"> String str5 = <span class="string">"Android"</span>;</span><br><span class="line"> String str6 = str1 + str5;</span><br><span class="line"> str5 = str5 + <span class="string">"Handoop"</span>;</span><br><span class="line"> String str7 = str6.intern();</span><br><span class="line"> String str8 = <span class="string">"JavaEEAndroid"</span>;</span><br><span class="line"> System.out.println(str1 == str2);<span class="comment">//true</span></span><br><span class="line"> System.out.println(str1 == str3);<span class="comment">//false</span></span><br><span class="line"> System.out.println(str1.equals(str3));<span class="comment">//true</span></span><br><span class="line"></span><br><span class="line"> System.out.println(str4 == str6);<span class="comment">//false</span></span><br><span class="line"> System.out.println(str4.equals(str6));<span class="comment">//true</span></span><br><span class="line"> System.out.println(str7 == str4);<span class="comment">//true</span></span><br><span class="line"> System.out.println(str4 == str8);<span class="comment">//true</span></span><br><span class="line"></span><br><span class="line"> Person p1 = <span class="keyword">new</span> Person(<span class="string">"AA"</span>);</span><br><span class="line"> Person p2 = <span class="keyword">new</span> Person(<span class="string">"AA"</span>);</span><br><span class="line"> System.out.println(<span class="string">"^_^"</span>+ (p1.name == p2.name));<span class="comment">//true</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</details>
<p><img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/crainyday/blog@master/imgs/Java/String%E5%86%85%E5%AD%98.png" alt="String内存"></p>
<h3 id="2-String常用方法">2.String常用方法</h3>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">length</span><span class="params">()</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">char</span> <span class="title">charAt</span><span class="params">(<span class="keyword">int</span> index)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">boolean</span> <span class="title">equals</span><span class="params">(Object anObject)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">compareTo</span><span class="params">(String anotherString)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">indexOf</span><span class="params">(String s)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">indexOf</span><span class="params">(String s ,<span class="keyword">int</span> startpoint)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">lastIndexOf</span><span class="params">(String s)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">lastIndexOf</span><span class="params">(String s ,<span class="keyword">int</span> startpoint)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">boolean</span> <span class="title">startsWith</span><span class="params">(String prefix)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">boolean</span> <span class="title">endsWith</span><span class="params">(String suffix)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">boolean</span> <span class="title">regionMatches</span><span class="params">(<span class="keyword">int</span> firstStart,String other,<span class="keyword">int</span> otherStart ,<span class="keyword">int</span> length)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">substring</span><span class="params">(<span class="keyword">int</span> startpoint)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">substring</span><span class="params">(<span class="keyword">int</span> start,<span class="keyword">int</span> end)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">replace</span><span class="params">(<span class="keyword">char</span> oldChar,<span class="keyword">char</span> newChar)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">replaceAll</span><span class="params">(String oldStr,String newStr)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">trim</span><span class="params">()</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">concat</span><span class="params">(String str)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String[] <span class="title">split</span><span class="params">(String regex)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">char</span>[] <span class="title">toCharArray</span><span class="params">()</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">boolean</span> <span class="title">contains</span><span class="params">(String str)</span></span></span><br></pre></td></tr></table></figure>
<h3 id="3-String与其他类型间的转换">3.String与其他类型间的转换</h3>
<ol>
<li>String、基本数据类型、包装类之间的转换</li>
</ol>
<ul>
<li>①String —> 基本数据类型、包装类: 调用相应包装类的parseXxx(String str)方法</li>
<li>②基本数据类型、包装类 —> String: 调用字符串重载的valueOf()方法</li>
</ul>
<ol start="2">
<li>String与byte[]之间的转换</li>
</ol>
<ul>
<li>①String —> byte[]: 调用字符串的getBytes()方法</li>
<li>②byte[] —> String: 调用字符串的构造器</li>
</ul>
<ol start="3">
<li>String与char[]之间的转换</li>
</ol>
<ul>
<li>①String —> char[]: 调用字符串的toCharArray()方法</li>
<li>②char[] —> String: 调用字符串的构造器</li>
</ul>
<details>
<summary>
One More Thing 👇
</summary>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span></span>{</span><br><span class="line"> <span class="comment">//1.String、基本数据类型、包装类</span></span><br><span class="line"> String str1 = <span class="string">"123"</span>;</span><br><span class="line"> <span class="keyword">int</span> i = Integer.parseInt(str1);</span><br><span class="line"> System.out.println(i);</span><br><span class="line"> </span><br><span class="line"> String str2 = i + <span class="string">""</span>;</span><br><span class="line"> str2 = String.valueOf(i);</span><br><span class="line"> System.out.println(str2);</span><br><span class="line"> <span class="comment">//2.String与byte[]之间的转换</span></span><br><span class="line"> String str3 = <span class="string">"abcdefg"</span>;</span><br><span class="line"> <span class="keyword">byte</span>[] b = str.getBytes();</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">int</span> j = <span class="number">0</span>;j < b.length; j++){</span><br><span class="line"> System.out.println((<span class="keyword">char</span>)b[j]);<span class="comment">//不能正确打印出汉字</span></span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> String str4 = <span class="keyword">new</span> String(b);</span><br><span class="line"> System.out.println(str4);</span><br><span class="line"> <span class="comment">//3.String与char[]之间的转换</span></span><br><span class="line"> String str5 = <span class="string">"love中国"</span>;</span><br><span class="line"> <span class="keyword">char</span>[] c = str5.toCharArray();</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">int</span> j = <span class="number">0</span>;j < c.length; c++){</span><br><span class="line"> System.out.println(c[j]);</span><br><span class="line"> }</span><br><span class="line"> </span><br><span class="line"> String str6 = <span class="keyword">new</span> String(c);</span><br><span class="line"> System.out.println(str6);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</details>
<h3 id="font-style-color-black-4-StringBuffer类-font"><font style='color:black;'>4.StringBuffer类</font></h3>
<p>StringBuffer(相当于一个容器)类有三个构造方法:</p>
<ol>
<li>StringBuffer()初始容量为16的字符串缓冲区</li>
<li>StringBuffer(int size)构造指定容量的字符串缓冲区</li>
<li>StringBuffer(String str)将内容初始化为指定字符串内容</li>
</ol>
<h3 id="5-StringBuffer常用方法">5.StringBuffer常用方法</h3>
<p>StringBuffer很多方法与String相同</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="function">StringBuffer <span class="title">append</span><span class="params">(String s)</span><span class="comment">//参数可以为:int n、Object o、char n、long n、boolean n</span></span></span><br><span class="line"><span class="function">StringBuffer <span class="title">insert</span><span class="params">(<span class="keyword">int</span> index, String str)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> StringBuffer <span class="title">reverse</span><span class="params">()</span><span class="comment">//调用此方法的StringBuffer也会反转</span></span></span><br><span class="line"><span class="function">StringBuffer <span class="title">delete</span><span class="params">(<span class="keyword">int</span> startIndex, <span class="keyword">int</span> endIndex)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">char</span> <span class="title">charAt</span><span class="params">(<span class="keyword">int</span> n)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">setCharAt</span><span class="params">(<span class="keyword">int</span> n ,<span class="keyword">char</span> ch)</span></span></span><br><span class="line"><span class="function">StringBuffer <span class="title">replace</span><span class="params">( <span class="keyword">int</span> startIndex ,<span class="keyword">int</span> endIndex, String str)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">indexOf</span><span class="params">(String str)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> String <span class="title">substring</span><span class="params">(<span class="keyword">int</span> start,<span class="keyword">int</span> end)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">int</span> <span class="title">length</span><span class="params">()</span></span></span><br></pre></td></tr></table></figure>
<h3 id="6-StringBuilder类">6.StringBuilder类</h3>
<p>也是可变的字符序列,而且方法也一样, JDK5.0后加的, 线程不安全, 但效率高于StringBuffer</p>
<p><font style='color:red;font-size:1.5em;font-weight:bold;'>使用String的一个弊端</font></p>
<blockquote>
<p>string s=“a”; //创建了一个字符串<br>
s=s+“b”; //实际上原来的"a"字符串对象已经丢弃了, 现在又产生了一个字符串s+“b”(也就是"ab").如果多次执行这些改变串内容的操作, 会导致大量副本字符串对象存留在内存中, 降低效率. 如果这样的操作放到循环中, 会极大影响程序的性能.</p>
</blockquote>
<h3 id="7-String、StringBuffer、StringBuilder性能比较">7.String、StringBuffer、StringBuilder性能比较</h3>
<details>
<summary>
One More Thing 👇
</summary>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span></span>{</span><br><span class="line"> String text = <span class="string">""</span>;</span><br><span class="line"> <span class="keyword">long</span> startTime = <span class="number">0L</span>;</span><br><span class="line"> <span class="keyword">long</span> endTime = <span class="number">0L</span>;</span><br><span class="line"> StringBuffer buffer = <span class="keyword">new</span> StringBuffer(<span class="string">""</span>);</span><br><span class="line"> StringBuilder builder = <span class="keyword">new</span> StringBuilder(<span class="string">""</span>);</span><br><span class="line"> startTime = System.currentTimeMillis();</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">int</span> i = <span class="number">0</span>;i<<span class="number">20000</span>;i++){</span><br><span class="line"> buffer.append(String.valueOf(i));</span><br><span class="line"> }</span><br><span class="line"> endTime = System.currentTimeMillis();</span><br><span class="line"> System.out.println(<span class="string">"StringBuffer的执行时间:"</span>+(endTime-startTime));</span><br><span class="line"> </span><br><span class="line"> startTime = System.currentTimeMillis();</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">int</span> i = <span class="number">0</span>;i<<span class="number">20000</span>;i++){</span><br><span class="line"> builder.append(String.valueOf(i));</span><br><span class="line"> }</span><br><span class="line"> endTime = System.currentTimeMillis();</span><br><span class="line"> System.out.println(<span class="string">"StringBuilder的执行时间:"</span>+(endTime-startTime));</span><br><span class="line"> </span><br><span class="line"> startTime = System.currentTimeMillis();</span><br><span class="line"> <span class="keyword">for</span>(<span class="keyword">int</span> i = <span class="number">0</span>;i<<span class="number">20000</span>;i++){</span><br><span class="line"> text = text + i;</span><br><span class="line"> }</span><br><span class="line"> endTime = System.currentTimeMillis();</span><br><span class="line"> System.out.println(<span class="string">"String的执行时间:"</span>+(endTime-startTime));</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</details>
<h2 id="二-时间相关类">二.时间相关类</h2>
<h3 id="1-System类">1.System类</h3>
<p>currentTimeMillis(): 返回当前时间的long型值. 此long值是从1970年1月1日0点0分00秒开始到当前的毫秒数.此方法常用来计算时间差</p>
<p>计算世界时间的主要标准:</p>
<ul>
<li>UTC(Universal Time Coordinated)</li>
<li>GMT(Greenwich Mean Time)—格林威治时间</li>
<li>CST(Central Standard Time)—标准时间(四个国家)</li>
</ul>
<h3 id="2-Date类">2.Date类</h3>
<p>有两个: java.util.Date类及它的子类 java.sql.Date<br>
表示特定的瞬间, 精确到毫秒</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> java.util.Date;</span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">testDate</span><span class="params">()</span></span>{</span><br><span class="line"> Date date = <span class="keyword">new</span> Date();<span class="comment">//两个构造方法, 无参和long型参数</span></span><br><span class="line"> System.out.println(date);</span><br><span class="line"> System.out.println(System.currentTimeMillis());</span><br><span class="line"> System.out.println(date.getTime());</span><br><span class="line"> System.out.println(date.toString());</span><br><span class="line"> </span><br><span class="line"> java.sql.Date d = <span class="keyword">new</span> java.sql.Date(date.getTime());</span><br><span class="line"> System.out.println(d);<span class="comment">//格式:year-month-day</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<p>Date类的API不易于国际化, 大部分方法被废弃了, java.text.SimpleDateFormat类是一个不与语言环境有关的方式来格式化和解析日期的具体类.</p>
<h3 id="3-SimpleDateFormat类">3.SimpleDateFormat类</h3>
<ul>
<li>格式化: 日期 —> 文本 使用SimpleDateFormat 的format()方法</li>
<li>解析: 文本 —> 日期 使用SimpleDateFormat的parse()方法</li>
</ul>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">void</span> <span class="title">main</span><span class="params">(String[] args)</span></span>{</span><br><span class="line"> <span class="comment">//1.默认模式格式化</span></span><br><span class="line"> SimpleDateFormat sdf = <span class="keyword">new</span> SimpleDateFormat();</span><br><span class="line"> String date = sdf.format(<span class="keyword">new</span> Date());</span><br><span class="line"> System.out.println(date);<span class="comment">//19-3-26 下午4:50</span></span><br><span class="line"> <span class="comment">//2.自定义模式格式化</span></span><br><span class="line"> SimpleDateFormat sdf1 = <span class="keyword">new</span> SimpleDateFormat(<span class="string">"EEE, d MMM yyyy HH:mm:ss Z"</span>);</span><br><span class="line"> date = sdf1.format(<span class="keyword">new</span> Date());</span><br><span class="line"> System.out.println(date);<span class="comment">//星期二, 26 三月 2019 16:55:16 +0800</span></span><br><span class="line"> <span class="comment">//3.解析:</span></span><br><span class="line"> Date date1 = sdf.parse(<span class="string">"19-3-26 下午4:50"</span>);<span class="comment">//要和构造器的格式字符串对应</span></span><br><span class="line"> System.out.println(date1);</span><br><span class="line"> date1 = sdf1.parse(<span class="string">"星期二, 26 三月 2019 16:55:16 +0800"</span>);</span><br><span class="line"><span class="comment">// date1 = sdf1.parse("19-3-26 下午4:50");//出异常</span></span><br><span class="line"> System.out.println(date1);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<h3 id="4-Calendar类">4.Calendar类</h3>
<p>Calendar是一个抽象基类, 主用用于完成日期字段之间相互操作的功能.</p>
<p>使用Calendar.getInstance()方法得到一个Calendar的实例, 一个Calendar的实例是系统时间的抽象表示</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">//常用方法</span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">get</span><span class="params">(<span class="keyword">int</span> field)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">set</span><span class="params">(<span class="keyword">int</span> field,<span class="keyword">int</span> value)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">add</span><span class="params">(<span class="keyword">int</span> field,<span class="keyword">int</span> amount)</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">final</span> Date <span class="title">getTime</span><span class="params">()</span></span></span><br><span class="line"><span class="function"><span class="keyword">public</span> <span class="keyword">final</span> <span class="keyword">void</span> <span class="title">setTime</span><span class="params">(Date date)</span></span></span><br></pre></td></tr></table></figure>
<h2 id="三-计算相关类">三.计算相关类</h2>
<h3 id="1-Math类">1.Math类</h3>
<p>java.lang.Math提供了一系列静态方法用于科学计算; 其方法的参数和返回值类型一般为double型.</p>
<blockquote>
<p>abs 绝对值<br>
acos,asin,atan,cos,sin,tan 三角函数<br>
sqrt 平方根<br>
pow(double a,doble b) a的b次幂<br>
log 自然对数<br>
exp e为底指数<br>
max(double a,double b)<br>
min(double a,double b)<br>
random() 返回0.0到1.0的随机数<br>
long round(double a) double型数据a转换为long型(四舍五入)<br>
toDegrees(double angrad) 弧度—>角度<br>
toRadians(double angdeg) 角度—>弧度</p>
</blockquote>
<h3 id="2-BigInteger类">2.BigInteger类</h3>
<p>Integer类作为int的包装类. 能存储的最大整型值为2^31−1, BigInteger类的数字范围较Integer类的数字范围要大得多, 可以支持任意精度的整数.</p>
<blockquote>
<p>构造器<br>
BigInteger(String val)<br>
常用方法<br>
public BigInteger abs()<br>
public BigInteger add(BigInteger val)<br>
public BigInteger subtract(BigInteger val)<br>
public BigInteger multiply(BigInteger val)<br>
public BigInteger divide(BigInteger val)<br>
public BigInteger remainder(BigInteger val)<br>
public BigInteger pow(int exponent)<br>
public BigInteger[] divideAndRemainder(BigInteger val)</p>
</blockquote>
<h3 id="3-BigDecimal类">3.BigDecimal类</h3>
<p>一般的Float类和Double类可以用来做科学计算或工程计算, 但在商业计算中, 要求数字精度比较高, 故用到java.math.BigDecimal类. BigDecimal类支持任何精度的定点数.</p>
<blockquote>
<p>构造器<br>
public BigDecimal(double val)<br>
public BigDecimal(String val)<br>
常用方法<br>
public BigDecimal add(BigDecimal augend)<br>
public BigDecimal subtract(BigDecimal subtrahend)<br>
public BigDecimal multiply(BigDecimal multiplicand)<br>
public BigDecimal divide(BigDecimal divisor, int scale, int roundingMode)</p>
</blockquote>
<br>
<section class="widget copyright desktop mobile">
<div class='content'>
<blockquote>
<p>博客内容遵循 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议</p>
<p>本文永久链接是:<a href=https://crainyday.gitee.io/JavaSE12-Class.html>https://crainyday.gitee.io/JavaSE12-Class.html</a></p>
</blockquote>
</div>
</section>
<section class="widget qrcode desktop mobile">
<div class='content article-entry'>
<fancybox><img src='https://cdn.jsdelivr.net/gh/crainyday/blog@master/alipay.png'
height='64px'
></fancybox>
<fancybox><img src='https://cdn.jsdelivr.net/gh/crainyday/blog@master/wechat.png'
height='64px'
></fancybox>
</div>
</section>
</div>
<section class='meta' id="footer-meta">
<div class='new-meta-box'>
<div class="new-meta-item date" itemprop="dateUpdated" datetime="2020-03-12T14:59:09+08:00">
<a class='notlink'>
<i class="fas fa-save" aria-hidden="true"></i>
<p>更新于:2020年3月12日</p>
</a>
</div>
<div class="new-meta-item meta-tags"><a class="tag" href="/tags/JavaSE/" rel="nofollow"><i class="fas fa-hashtag" aria-hidden="true"></i><p>JavaSE</p></a></div> <div class="new-meta-item meta-tags"><a class="tag" href="/tags/Java/" rel="nofollow"><i class="fas fa-hashtag" aria-hidden="true"></i><p>Java</p></a></div>
<div class="new-meta-item wordcount">
<a class='notlink'>
<i class="fas fa-keyboard" aria-hidden="true"></i>
<p>字数:1.8k字</p>
</a>
</div>
<div class="new-meta-item readtime">
<a class='notlink'>
<i class="fas fa-hourglass-half" aria-hidden="true"></i>
<p>时长:8分钟</p>
</a>
</div>
<div class="new-meta-item share -mob-share-list">
<div class="-mob-share-list share-body">
<a class="-mob-share-qq" title="" rel="external nofollow noopener noreferrer"
href="http://connect.qq.com/widget/shareqq/index.html?url=https://crainyday.gitee.io/JavaSE12-Class.html&title=JavaClass - CRainyDay&pics=https://cdn.jsdelivr.net/gh/crainyday/blog@master/imgs/more/more04.png&summary=Java常用类"
>
<img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/qq.png">
</a>
<a class="-mob-share-qzone" title="" rel="external nofollow noopener noreferrer"
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=https://crainyday.gitee.io/JavaSE12-Class.html&title=JavaClass - CRainyDay&pics=https://cdn.jsdelivr.net/gh/crainyday/blog@master/imgs/more/more04.png&summary=Java常用类"
>
<img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/qzone.png">
</a>
<a class="-mob-share-weibo" title="" rel="external nofollow noopener noreferrer"
href="http://service.weibo.com/share/share.php?url=https://crainyday.gitee.io/JavaSE12-Class.html&title=JavaClass - CRainyDay&pics=https://cdn.jsdelivr.net/gh/crainyday/blog@master/imgs/more/more04.png&summary=Java常用类"
>
<img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/weibo.png">
</a>
<div class='hoverbox'>
<a><img src="https://cdn.jsdelivr.net/gh/crainyday/blog@master/lazyload.svg" data-original="https://cdn.jsdelivr.net/gh/xaoxuu/cdn-assets/logo/128/wechat.png"></a>
<div class='target'>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAAAAACi5bZQAAADCklEQVR42u3aSRLbMAwEQP//08kDEhcxIOUi7NbNm0y0LlMAXn9c/71eCMCAAQMGDJgxMK/m9c8N33y++n36f+k54vuDAQMGDBgwYMbBlANQ8funwKvwp+oBAwYMGDBgwMyFqQasKkC1gG4AXBaangsMGDBgwIAB87Mwq6DVDXanHxwYMGDAgAEDBkw1aFU/Txth1wc8MGDAgAEDBszHYOIB1WYjqztou34SCQYMGDBgwID5GEx3wefW1+16wIABAwYMGDBjYHavNIDtBrH0d3E9YMCAAQMGDJgxMKcbS937dBtRxxtjYMCAAQMGDJhxMKsDV99PA1y66FOFTMHAgAEDBgwYMPNhugHrFFwXKoWPAx4YMGDAgAEDZgxM2khKwbqDve7ArxwcwYABAwYMGDBjYKo3Shd4dgNZd9CW1gEGDBgwYMCA+R6Y3cCVHrQLfOqBvR24gQEDBgwYMGDGwHQXbsoLOWHg6w720u8tAx4YMGDAgAED5lqYpwrtAsSFhA2p9uIQGDBgwIABA+Z6mO4AqxrQug2kxwLdu0YVGDBgwIABA+Z6mG5gSwtIC+wGyN1GGRgwYMCAAQNmHkwavHah2gEsbIDF5wQDBgwYMGDAfC3M7oLPKbBTi03LRhUYMGDAgAED5lqYamDqQlSDYXcQtztwWy4OgQEDBgwYMGCuh+kGrKeBqw2rNBDGG1VgwIABAwYMmGthTi0EdQvp/l96juX7YMCAAQMGDJixMLsHf6rQtGHVDopgwIABAwYMmPEw3QFYN3ilDbHuYtByUAcGDBgwYMCAGQOze+0esHu/3QewbFSBAQMGDBgwYK6HeTowpQ2ttMFUHeyBAQMGDBgwYL4XJg106SJR2qA6FRzjBwwGDBgwYMCAGQuTBrAUNm1UfQoQDBgwYMCAAfO7MLuNrbRBtfpe2kADAwYMGDBgwPwuTBrYPhXw0nOAAQMGDBgwYObCpAOzLsCpglNoMGDAgAEDBsz3wXQHV6cCXneQt9sgAwMGDBgwYMDMhXGBAQMGDBgwYIZdfwFAqmWOtUpm7wAAAABJRU5ErkJggg==">
</div>
</div>
</div>
</div>
</div>
</section>
<div class="prev-next">
<a class='prev' href='/JavaSE13-Reflection.html'>
<p class='title'><i class="fas fa-chevron-left" aria-hidden="true"></i>JavaReflection</p>
<p class='content'>Java的反射机制
一.Java Reflection
Reflection(反射)是被视为动态语言的关键, 反射机制允许程序在执行期借助于Reflection API取得任何类的内部信息, ...</p>
</a>
<a class='next' href='/JavaSE11-Thread.html'>
<p class='title'>Thread<i class="fas fa-chevron-right" aria-hidden="true"></i></p>
<p class='content'>Java多线程
一.基本概念
程序、进程、线程
程序(program)可以理解为静态的代码
进程(process)可以理解为执行中的程序
线程(thread)可以理解为进程的进一步细分,...</p>
</a>
</div>
</section>
</article>
<section class="widget related_posts shadow floatable desktop mobile">
<header>
<i class="fas fa-bookmark fa-fw" aria-hidden="true"></i><span class='name'>相关文章</span>
</header>
<div class="content">
<ul class="popular-posts"><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-10.html" title="JDBC-DBUtils" rel="bookmark">JDBC-DBUtils</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-9.html" title="JDBC-数据库连接池" rel="bookmark">JDBC-数据库连接池</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-8.html" title="JDBC-批处理" rel="bookmark">JDBC-批处理</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-7.html" title="JDBC-数据库事务" rel="bookmark">JDBC-数据库事务</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JavaSE14-Internet.html" title="JavaInternet" rel="bookmark">JavaInternet</a></h3></div></li></ul>
</div>
</section>
<!-- 显示推荐文章和评论 -->
<article class="post white-box comments shadow floatable">
<section class="article typo">
<p ct><i class='fas fa-comments'></i> 评论</p>
<section id="comments">
<div id="valine_container" class="valine_thread">
<i class="fas fa-spinner fa-spin fa-fw"></i>
</div>
</section>
</section>
</article>
<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->
<script>
window.subData = {
title: 'JavaClass',
tools: true
}
</script>
</div>
<aside class='l_side'>
<section class="widget related_posts shadow floatable desktop mobile">
<header>
<i class="fas fa-bookmark fa-fw" aria-hidden="true"></i><span class='name'>相关文章</span>
</header>
<div class="content">
<ul class="popular-posts"><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-10.html" title="JDBC-DBUtils" rel="bookmark">JDBC-DBUtils</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-9.html" title="JDBC-数据库连接池" rel="bookmark">JDBC-数据库连接池</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-8.html" title="JDBC-批处理" rel="bookmark">JDBC-批处理</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JDBC1-7.html" title="JDBC-数据库事务" rel="bookmark">JDBC-数据库事务</a></h3></div></li><li class="popular-posts-item"><div class="popular-posts-title"><h3><a href="/JavaSE14-Internet.html" title="JavaInternet" rel="bookmark">JavaInternet</a></h3></div></li></ul>
</div>
</section>
<section class="widget grid shadow floatable desktop mobile">
<header>
<i class="fas fa-map-signs fa-fw" aria-hidden="true"></i><span class='name'>实用文档</span>
</header>
<div class='content'>
<div class="grid navigation fixed">
<a class="flat-box" title="/maven_05.html" href="/maven_05.html"
id="maven_05.html">
<i class="fas fa-file fa-fw" aria-hidden="true"></i>
Maven工程
</a>
<a class="flat-box" title="/Flask.html" href="/Flask.html"
id="Flask.html">
<i class="fas fa-file fa-fw" aria-hidden="true"></i>
Flask应用
</a>
<a class="flat-box" title="/Hexo.html" href="/Hexo.html"
id="Hexo.html">
<i class="fas fa-file fa-fw" aria-hidden="true"></i>
Gitee搭站
</a>
<a class="flat-box" title="/Ubuntu_006.html" href="/Ubuntu_006.html"
id="Ubuntu_006.html">
<i class="fas fa-file fa-fw" aria-hidden="true"></i>
v2ray
</a>
</div>
</div>