自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

BaiLCccc

白仔

  • 博客(6)
  • 收藏
  • 关注

原创 【嗖嗖移动业务大厅】指定卡号换套餐遇到的类对象出现无法识别BUG

/** * 指定卡号换套餐 * * @param number * @param packType */ public void changingPack(String number, String packNum) { MobileCard card; // 指定的手机卡 ServicePackage pack = null; // 要换的套餐 if (isExistCard(number)) { card = cards.get(number); // .

2020-07-18 15:36:43 308

原创 【数组】冒泡排序

1.66 77 12 21 9966 12 77 21 9966 12 21 77 9966 12 21 77 992.12 66 21 77 9912 21 66 77 9912 21 66 77 993.12 21 66 77 9912 21 66 77 994.12 21 66 77 99@Test/* * 冒泡排序 */public void test01(){ int arr[]={77,66,12,21,99}..

2020-06-24 15:32:08 125

原创 【数组】NullPointerException 异常

第一种:public class test02 { public static void main(String[] args) { int[] arr = {1,2,3}; arr = null; //表示系统根本没有给这个arr数组对象分配内存空间 System.out.println(arr[1]); }}没有内存空间所以输出会报空指针异常第二种:String a[]= new String[3];.

2020-06-24 14:41:16 387

原创 【数组】ArrayIndexOutOfBoundsException异常

ArrayIndexOutOfBoundsException异常数组越界 -->>指使用非法索引访问数组。索引为负值或大于或等于数组的大小。比如: int arr[]= new int[5]; int i = arr[10]; arr[5]=1;解决方案:检查索引界限。索引不能为负值或大于或等于数组的大小...

2020-06-24 14:04:38 854

原创 【Junit】 initializationerror [Runner:JUnit 4] 报错

上课运行JUnit测试类的时候发现的问题,看别的解决方案发现并不与我的情况相匹配:别的解决方案:问题一、单元测试的方法应该是实例方法,而不能是静态方法。修改意见:将static关键字去掉问题二、单元测试的方法返回void ,修改意见:将返回值修改为void然后从头检查测试类发现开头缺少了@Test,添加之后问题解决。...

2020-06-17 10:00:43 276

原创 【Junit】The import org.junit cannot be resolved报错

解决方案:项目右键Properties>Java Build Path>Libraries>add library>Juint>next>finishimport org.junit.Text;导入Junit包后,报错变为The import org.junit.Test conflicts with a type defined in the same file有两种可能:原因一:导入的jar包相冲突 原因二:写Junit测试的Java类名为.

2020-06-13 11:29:48 1554

空空如也

空空如也

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

TA关注的人

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