自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

转载 CSV文件读取

public class Goods { private String name; private int type; private Double price; public Goods(){ } public Goods(String name, int type, Do...

2015-09-29 22:40:00 86

转载 jQuery优化元素内容过长

<script><jQuery(document).ready(function(){ var title=jQuery("#title").text(); if(title.length>30){ jQuery("#title").html(title.substring(0,30)+"..."); jQuery("#title").at...

2015-09-24 14:56:00 101

转载 读取properties配置文件

假设在src根目录下有一个名为abc.properties的配置文件public class Demo { public static void main(String[] args) { ResourceBundle rb = ResourceBundle.getBundle("abc"); String email=rb.g...

2015-09-24 14:42:00 69

转载 String类及常用操作

String str = new String(); System.out.println(str);以上示例没有输出对象的哈希码,说明重写了toString()方法.操作字符串的常用方法: String s = "helloworld"; System.out.println(s.charAt(0)); //输出h,返...

2015-09-23 23:42:00 81

转载 单例模式

单例模式:使类在内存中只有一个实例对象。实现单例的思路是: a 让外界不能创建对象 b 类本身创建一个对象 c 提供公共的访问方式 无论是懒汉式还是饿汉式都具备以上三点饿汉式:public class Student { //为了让getStudent()可以使用stu对象,需要加上static //为了不让...

2015-09-22 16:57:00 68

转载 线程安全

public class TicketetsRunable implements Runnable { private int tickets = 100; @Override public void run() { while (true) { //当tickets=1时 //有...

2015-09-20 19:25:00 73

转载 ArrayList的值出现覆盖问题

public class User { private int id; private String name; public User(){ } public User(int id, String name) { super(); this.id = id; ...

2015-09-19 20:34:00 169

转载 ArrayList相关问题

/** *用户类 */public class User { private int id; private String name; public User(){ } public User(int id, String name) { super(); ...

2015-09-18 22:11:00 109

转载 finally面试题

Q:如果在catch里面有return语句,finally里面的代码还会执行吗?在return前执行还是return后执行?A:会执行,在return前执行示例:public class Demo { public static void main(String[] args) { int i = getNumber(20); ...

2015-09-16 16:22:00 102

转载 Spring自动装配bean属性

节选自《Spring in Action》64-69页package com.sflik.bean;/** * Created by sflik on 2015/7/14. * 诗接口 */public interface Poem { void recite();//朗诵}package com.sflik.bean;...

2015-09-14 17:04:00 150

空空如也

空空如也

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

TA关注的人

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