wutian的小破站


  • Home

  • Tags

  • Categories

  • Archives

Collections

Posted on 2019-10-10 | In java基础

[TOC]

通用算法

改变元素顺序

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void reverse(List<?> list)
// reverse the order of the elements
void rotate(List<?> list, int distance)
// rotate the elements of the list; the element at index
// i is moved to index (distance + i) % list.size()
void shuffle(List<?> list)
// randomly permute the list elements
void shuffle(List<?> list, Random rnd)
// randomly permute the list using the randomness source rnd
<T extends Comparable<? super T>> void sort(List<T> list)
// sort the supplied list using natural ordering
<T> void sort(List<T> list, Comparator<? super T> c)
// sort the supplied list using the supplied ordering
void swap(List<?> list, int i, int j)
// swap the elements at the specified positions
Read more »

Queue

Posted on 2019-09-26 | In java基础

[TOC]

Queue特性及方法

框架
queue_collection_framework.png

特性:
按元素添加的顺序排列(FIFO、FILO、优先级等)

Read more »

Map

Posted on 2019-09-24 | In java基础

[TOC]

Map特性

键值对
不继承Collection
键唯一

Map方法

Map.png

Read more »

List

Posted on 2019-09-23 | In java基础

[TOC]

List方法

list_method

Read more »

Set

Posted on 2019-09-19 | In java基础

[TOC]

特性

没有重复元素

Set接口

implementtation_of_the_set_interface.png
6个实现类,2个接口

Read more »

hexo command

Posted on 2019-08-09 | In 备忘录

常见命令

1
2
3
4
5
6
7
* hexo new "postName" #新建文章
* hexo new page "pageName" #新建页面
* hexo generate #生成静态页面至public目录
* hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
* hexo deploy #部署到GitHub
* hexo help # 查看帮助
* hexo version #查看Hexo的版本

缩写:

1
2
3
4
hexo n == hexo new
hexo g == hexo generate
hexo s == hexo server
hexo d == hexo deploy

组合命令:

1
2
hexo s -g #生成并本地预览
hexo d -g #生成并上传
Read more »

Hello World

Posted on 2019-08-09

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Read more »

wutian

7 posts
2 categories
8 tags
© 2020 wutian
Powered by Hexo
|
Theme — NexT.Gemini v6.0.0
0%