自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

转载 Java 8 Streams filter examples

博文出处:https://www.mkyong.com/java8/java-8-streams-filter-examples/In this tutorial, we will show you a few of examples to demonstrate the use of Streams filter() with collect(),findAny() and 

2017-01-11 18:13:17 933

转载 Java static variable and static final variable

博文出处:http://beginnersbook.com/2013/05/static-variable/Earlier we discussed static class, static methods and static import in java. In this tutorial we will see what are static variable

2017-01-11 17:11:04 666

转载 Java 静态与非静态方法的区别

Java static与non-static的区别

2017-01-11 16:51:01 941

转载 Java – Static Class, Block, Methods and Variables

In this tutorial we will discuss the use of static keyword in Java. It can be used along with Class name, Variables, Methods and block.1. static class2. static block3. static methods4. stati

2017-01-11 16:01:26 492

转载 For A, B such that AB is square, prove trAB = trBA.

prove tr(AB) = tr(BA)

2017-01-11 09:37:43 2033

转载 Java I/O 操作示例

参考博文:http://beginnersbook.com/java-io-tutorial-with-examples/I have written several tutorials on Java I/O. You can find out the links of all the tutorials below. The tutorials are explained

2017-01-10 18:30:55 452

转载 Java8中使用filter()过滤列表,使用collect将stream转化为list

Reference: https://www.mkyong.com/java8/java-8-streams-filter-examples//* In Java 8, using stream.filter() to filter a List, and collect() to convert a stream. */import java.util.*;import j

2017-01-10 18:22:22 122137 4

转载 Java8 中使用forEach + lambda expression/method reference 循环List和Map

Reference: http://www.mkyong.com/java8/java-8-foreach-examples//* Java8 中使用forEach + lambda expression/method reference 循环列表 */import java.util.ArrayList;import java.util.List;public clas

2017-01-10 17:43:04 3159

转载 Java 将文件压缩为GZIP格式

From: http://beginnersbook.com/2014/07/how-to-compress-a-file-in-gzip-format//* 将文件压缩为GZIP格式,使用GZIPOutputStream的write()方法将array of bytes写入压缩文件中 */import java.io.*;import java.util.zip.GZIPOu

2017-01-10 15:44:02 3538

转载 Java File renameTo方法重命名文件

From: http://beginnersbook.com/2014/07/how-to-compress-a-file-in-gzip-format//* 使用File的renameTo()方法重命名文件 */import java.io.*;public class Exercise { public static void main(String args[

2017-01-10 15:04:51 25336

转载 Java使用File的的delete()方法删除文件

From: http://beginnersbook.com/2014/01/how-to-delete-file-in-java-delete-method//* 使用File的delete()方法删除文件 */import java.io.*;public class Exercise { public static void main(String args[

2017-01-10 14:55:19 31568

转载 Java使用PrintWriter更好地格式化待追加的文本

/* 使用PrintWriter可以更好地格式化要追加的文本内容 */import java.io.*;public class Exercise { public static void main(String args[]) { try{ File file = new File("/home/zjz/Desktop/myFile1.txt");

2017-01-10 14:47:21 3706

转载 Java使用FileWriter和BufferedWriter添加内容到文件末尾

From: http://beginnersbook.com/2014/01/how-to-append-to-a-file-in-java//* 使用FileWriter 和 BufferedWriter将内容追加到文件末尾 */import java.io.*;public class Exercise { public static void main(Str

2017-01-10 14:31:42 11161

转载 正则表达式的非捕获组

ref:http://www.cnblogs.com/graphics/archive/2010/06/02/1749707.htmlhttp://www.cnblogs.com/yakun/p/3795589.html原文符号因为?在正则表达式中有特殊的含义,所以如果想匹配?本身,则需要转义,\?有无量词问号可以表示重复前面内容的0次或一次,也

2017-01-10 12:34:24 6209

转载 Java使用BufferedWriter写入文件

from: http://beginnersbook.com/2014/01/how-to-write-to-file-in-java-using-bufferedwriter//* 使用BufferedWriter写入文件内容,BufferedWriter与FileWriter结合使用,好比BufferedReader与FileReader结合使用,File、FileInputSt

2017-01-05 18:56:08 6050

转载 Java使用FileOutputStream写入文件

From: http://beginnersbook.com/2014/01/how-to-write-to-a-file-in-java-using-fileoutputstream//* 使用FileOutputStream写入文件,FileOutputStream的write() 方法只接受byte[] 类型的参数,所以需要将string通过getBytes()方法转换为字节数

2017-01-05 18:02:29 30761

转载 Java中使用BufferedReader读取文件内容

1、首先创建FileReader对象2、将FileReader传递给BufferedReader3、采用BufferedReader的readLine()方法和read()方法来读取文件内容4、最后一定要的finally语句中关闭BufferedReaders5、FileReader与BufferedReader配合使用,File,FileInputStream,BufferedInput

2017-01-05 17:40:56 46987

转载 Java创建文件并使用BufferedInputStream读取文件内容

/* 1、创建File类的对象 2、File.createFile() 方法创建新文件,若文件已经存在则返回false,创建成功返回true 3、使用FileInputStream读取文件文件内容,使用BufferedInputStream加速读取 4、无论上述步骤成功与否都要最后关闭相关的streams,在finally语句中关闭 */import java.io.*;p

2017-01-05 17:20:45 4919

原创 Java Enum数据类型

// ref: http://crunchify.com/why-and-for-what-should-i-use-enum-java-enum-examples/// You should always use enums when a variable (especially a method parameter)// can only take one out of a small s

2017-01-04 17:55:18 2260

原创 Protocol Buffers for Java

直接Google Protocol Buffer参考 Protocol Buffer Basics: Java官方的Guide说的很清楚建议仔细阅读,包括使用原因,使用示例等。

2017-01-04 12:03:30 643

pywin32-219.win-amd64-py2.7.exe

将python程序打包成.exe文件的插件

2015-02-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除