uTank-木头
每一个你不满意的现在,都有一个你没有努力的曾经。

随笔分类 -  摸摸Java

1 2 下一页
【Java】字节数组转换工具类
摘要:1 import org.apache.commons.lang.ArrayUtils; 2 3 import java.nio.charset.Charset; 4 5 /** 6 * 字节数组转换工具类 7 */ 8 public class BytesUtils { 9 10 public static final String ... 阅读全文
posted @ 2017-11-22 09:51 uTank 阅读(5903) 评论(0) 推荐(0)
【Java】字符串工具类
摘要:1 import android.annotation.SuppressLint; 2 3 import java.io.UnsupportedEncodingException; 4 import java.util.ArrayList; 5 import java.util.List; 6 import java.util.regex.Matcher; 7 ... 阅读全文
posted @ 2017-11-22 09:50 uTank 阅读(2476) 评论(0) 推荐(0)
【Java】身份证号码验证
摘要:代码引用自:https://gitee.com/appleat/codes/ynrtqujv0wfgesm8ia9b547 阅读全文
posted @ 2017-08-03 15:10 uTank 阅读(492) 评论(0) 推荐(0)
【Java】将字节转换成十六进制、BCD码输出
摘要:1 public class HexUtils { 2 3 public static void main(String[] args) { 4 byte []out = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 5 (byte)0x10... 阅读全文
posted @ 2017-08-02 18:49 uTank 阅读(4005) 评论(0) 推荐(0)
【Java】输出目录结构
摘要:1 import java.io.*; 2 import java.io.File; 3 import java.io.IOException; 4 5 public class FileUtil { 6 7 public static void main( String[] args ) throws IOException { 8 ... 阅读全文
posted @ 2017-08-01 15:50 uTank 阅读(379) 评论(0) 推荐(0)
Core Java Volume I — 1.2. The Java "White Paper" Buzzwords
摘要:1.2. The Java "White Paper" BuzzwordsThe authors of Java have written an influential White Paper that explains their design goals and accomplishments.... 阅读全文
posted @ 2015-07-06 11:15 uTank 阅读(364) 评论(0) 推荐(0)
Core Java Volume I — 5.1. Classes, Superclasses, and Subclasses
摘要:5.1. Classes, Superclasses, and SubclassesLet's return to the Employee class that we discussed in the previous chapter. Suppose (alas) you work for a ... 阅读全文
posted @ 2015-05-06 10:31 uTank 阅读(900) 评论(0) 推荐(0)
Core Java Volume I — 4.10. Class Design Hints
摘要:4.10. Class Design HintsWithout trying to be comprehensive or tedious, we want to end this chapter with some hints that will make your classes more ac... 阅读全文
posted @ 2015-04-23 15:23 uTank 阅读(199) 评论(0) 推荐(0)
Core Java Volume I — 4.7. Packages
摘要:4.7. PackagesJava allows you to group classes in a collection called a package. Packages are convenient for organizing your work and for separating yo... 阅读全文
posted @ 2015-04-23 14:57 uTank 阅读(357) 评论(0) 推荐(0)
Android开发之Java必备基础
摘要:Android开发之Java必备基础Java类型系统Java语言基础数据类型有两种:对象和基本类型(Primitives)。Java通过强制使用静态类型来确保类型安全,要求每个变量在使用之前必须先声明。这种机制和非静态类型的语言有很大差别,非静态语言不要求对变量进行声明。虽然显式类型声明看起来较繁琐... 阅读全文
posted @ 2015-04-19 23:03 uTank 阅读(15297) 评论(0) 推荐(0)
Core Java Volume I — 4.6. Object Construction
摘要:4.6. Object ConstructionYou have seen how to write simple constructors that define the initial state of your objects. However, since object constructi... 阅读全文
posted @ 2015-04-17 09:51 uTank 阅读(233) 评论(0) 推荐(0)
Core Java Volume I — 4.5. Method Parameters
摘要:4.5. Method ParametersLet us review the computer science terms that describe how parameters can be passed to a method (or a function) in a programming... 阅读全文
posted @ 2015-04-16 15:40 uTank 阅读(304) 评论(0) 推荐(0)
Core Java Volume I — 4.4. Static Fields and Methods
摘要:4.4. Static Fields and MethodsIn all sample programs that you have seen, the main method is tagged with the static modifier. We are now ready to discu... 阅读全文
posted @ 2015-04-15 17:49 uTank 阅读(312) 评论(0) 推荐(0)
Core Java Volume I — 4.1. Introduction to Object-Oriented Programming
摘要:4.1. Introduction to Object-Oriented ProgrammingObject-oriented programming, or OOP for short, is the dominant programming paradigm these days, having... 阅读全文
posted @ 2015-04-15 15:10 uTank 阅读(266) 评论(0) 推荐(0)
Core Java Volume I — 3.10. Arrays
摘要:3.10. ArraysAn array is a data structure that stores a collection of values of the same type. You access each individual value through an integer inde... 阅读全文
posted @ 2015-04-14 14:24 uTank 阅读(193) 评论(0) 推荐(0)
Core Java Volume I — 3.8. Control Flow
摘要:3.8. Control FlowJava, like any programming language, supports both conditional statements and loops to determine control flow. We will start with the... 阅读全文
posted @ 2015-04-14 14:22 uTank 阅读(470) 评论(0) 推荐(0)
Core Java Volume I — 3.6. Strings
摘要:3.6. StringsConceptually, Java strings are sequences of Unicode characters(Java的字符串是一个Unicode序列). For example, the string "Java\u2122" consists of the... 阅读全文
posted @ 2015-04-14 14:20 uTank 阅读(257) 评论(0) 推荐(0)
Core Java Volume I — 3.5. Operators
摘要:3.5. OperatorsThe usual arithmetic operators +, -, *, / are used in Java for addition, subtraction, multiplication, and division. The / operator denot... 阅读全文
posted @ 2015-04-13 18:05 uTank 阅读(337) 评论(0) 推荐(0)
Core Java Volume I — 3.4. Variables
摘要:3.4. VariablesIn Java, every variable has a type. You declare a variable by placing the type first, followed by the name of the variable. Here are som... 阅读全文
posted @ 2015-04-13 18:04 uTank 阅读(255) 评论(0) 推荐(0)
Core Java Volume I — 3.3. Data Types
摘要:3.3. Data TypesJava is a strongly typedlanguage(强类型语音). This means that every variable must have a declared type(每个变量都必须声明类型). There are eight primiti... 阅读全文
posted @ 2015-04-13 17:29 uTank 阅读(265) 评论(0) 推荐(0)

1 2 下一页