自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 冒泡练习

int[] arr=new int[10]; for(int i=0;i<arr.length;i++){ arr[i]}=(int)Math.random()*100; } for(int i=0;i<arr.length;i++){ for(int j=0;j<arr.length-1-i;j++){ if...

2019-04-08 17:07:00 126

转载 判断整型数据奇偶数

public boolean number(int number){ return number%2!=1; } public boolean number(int number){ return number&1==1; } 转载于:https://www.cnblogs.com/li19941999/p/10671503.html...

2019-04-08 16:44:00 309

转载 一个网友遇到的重载问题

public static void main(String[] args){   int c=add(5, 6);   System.out.println(c);   add(new Integer(6),new Integer(7)); } public static int add(int a,int b){   return a+b; } public static v...

2019-03-25 12:14:00 119

转载 mybatis配置文件

mybatis-config.xml <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE configurationPUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd"><config...

2019-03-16 15:45:00 107

转载 生成随机姓名

public class Demo {   @Test   public void test01() throws UnsupportedEncodingException{     Random r=new Random();     for(int i=0 ;i<100;i++){       StringBuffer name=new StringBuffer(); ...

2019-03-13 11:33:00 255

转载 自定义框架

public class JDBC {   private static Connection conn=null;     static{       try {         Class.forName("com.mysql.jdbc.Driver");       } catch (ClassNotFoundException e) {         e.pri...

2019-03-13 00:12:00 107

转载 OutputStream copy file

public class OutputStreamTest{   public static void main(String[] args){     streamCopy();     streamArrayCopy();   }   public static void streamCopy(){     InputStream input=new FileInputS...

2019-02-13 23:38:00 152

转载 mysql 连接02

public static void main(String[] args){   Class.forName("com.mysql.jdbc.Driver");   Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql?characterEncoding=utf-8","root...

2019-02-12 10:40:00 92

转载 InputStreamReader

public class Test {   public static void main(String[] args) throws IOException {     //转换流以单个英文或单个中文为一个字符读取可直接转换为char类型输出     InputStreamReader input=new InputStreamReader(new FileInputStrea...

2019-02-11 17:22:00 107

转载 mysql 连接01

public class MySqlTest{   public static void main(String[] args) throws Exception{     Class.forName("com.mysql.jdbc.Driver");     Connection conn=DriverManager.getConnection("jdbc:mysql://loc...

2019-02-11 16:54:00 107

转载 InputStream 控制台输出方法

public class IOTest{   public static void main(String[] args){     File file=new File("");     inputStream01(file);   }   //单个输出英文字符   public static void inputStream01(File file){     Inpu...

2019-02-10 11:42:00 1495

空空如也

空空如也

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

TA关注的人

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