01 2022 档案
摘要:java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer map里string转integer错误 map里放了string的数字,转型integer会报错。 java.lang.ClassC
阅读全文
摘要:防御式编程该怎么认识呢,在其他程序员犯下错误时保护你自己,一个子程序不因传入错误数据而被破坏,也就是说程序都会出现问题,需要时时修改。 断言对于一些大型程序来说,是很有用的,这样能够更快排查出程序哪里出现的错误,断言可以在程序中说明各种假定,澄清各种不希望出现的情形,当然,断言是在程序开发、维护阶段
阅读全文
摘要:package com.example.easycash.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.vie
阅读全文
摘要:package com.example.easycash.utils; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.os.Handler; im
阅读全文
摘要:package com.example.easycash.db; /* * 表示收入或者支出具体类型的类 * */ public class TypeBean { int id; String typename; //类型名称 int imageId; //未被选中图片id int simageId
阅读全文
摘要:package com.example.easycash; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragment; import androidx.viewpager.widget
阅读全文
摘要:在src下新建RecordActivity,layout中会自动新建activity_record.xml文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com
阅读全文