上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: package lei; public class TestString { public static void main(String[] args) { String s="郭明明成精说过"; String s1="中国人ok"; System.out.println(s.length()); System.out.println(s1.getBytes().len... 阅读全文
posted @ 2017-04-25 14:43 苏轼的红烧肉 阅读(88) 评论(0) 推荐(0) 编辑
摘要: package chanyonglei; public class Person extends Object{ String name; int age; public Person(String name, int age) { super(); this.name = name; this.age = age; } @Override public String ... 阅读全文
posted @ 2017-04-24 21:55 苏轼的红烧肉 阅读(114) 评论(0) 推荐(0) 编辑
摘要: package baozhuanglei; public class IntTest { public static void main(String[] args) { //创建一个Integer对象 Integer i=new Integer(233); //转换成十进制 Integer i1=Integer.valueOf ("100",2); ... 阅读全文
posted @ 2017-04-23 20:45 苏轼的红烧肉 阅读(108) 评论(0) 推荐(0) 编辑
摘要: package zuizhong; public class Dict { DicItem[]dict=new DicItem[5]; class DicItem{ String en; String ch; public DicItem(String en, String ch) { super(); this.en =... 阅读全文
posted @ 2017-04-23 16:48 苏轼的红烧肉 阅读(157) 评论(0) 推荐(0) 编辑
摘要: package boa; import java.util.Scanner; public class TestSystem { public static void main(String[] args) { //方法1;输出 //方法2:退出jvm System.exit(0) //方法3:数组复制arraycopy() //方法4:获得当前的系统时间;l... 阅读全文
posted @ 2017-04-23 15:36 苏轼的红烧肉 阅读(152) 评论(0) 推荐(0) 编辑
摘要: package zuizhong; public class Test5 { public static void main(String[] args) throws Exception { try { int s=divide(100, 0); } catch (Exception e) { throw e; } ... 阅读全文
posted @ 2017-04-23 13:56 苏轼的红烧肉 阅读(132) 评论(0) 推荐(0) 编辑
摘要: package yichang; import java.util.Scanner; public class Test { public static void main(String[] args) { String s=null; int[]a={4,4,6,8}; int i=9; System.out.pri... 阅读全文
posted @ 2017-04-21 21:27 苏轼的红烧肉 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package com.paixu; public class Student { String name; int score; public Student(String name, int score) { super(); this.name = name; this.score = score; } public String getName() { ... 阅读全文
posted @ 2017-04-20 18:04 苏轼的红烧肉 阅读(305) 评论(0) 推荐(0) 编辑
摘要: package com.test2; /* * 创建一程序,该程序包括一个筛子类,后者有三个数据成员,即筛子的面数, * 筛子的点数以及包含随机数类的静态数据成员。为这个类声明一个名为roll()的成员方法, * 它以随机的方式返回下一次掷筛子得的点数。 */ public class Test { public static void main(String[] args... 阅读全文
posted @ 2017-04-19 14:58 苏轼的红烧肉 阅读(252) 评论(0) 推荐(0) 编辑
摘要: public class Student { String name; String no; int deg; public static void showInfo( String name,String no,int deg){ if(deg>=80 && deg<=90){ System.out.println("姓名:"+name); Syste... 阅读全文
posted @ 2017-04-18 16:08 苏轼的红烧肉 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页