摘要:
实现方法 方法1 粗略计算,只对年份进行计算 import java.util.Calendar; public class Test { public static void main(String[] args) { // 模拟输入一个日期 String date = "29991117"; / 阅读全文
摘要:
错误提示 Recommendation Your CPU does not support required features (VT-x or SVM). 原因 电脑的处理器是AMD,而AMD不能安装HAXM 解决方法 解决方法1 直接使用手机来调试 解决方法2 使用第三方的安卓模拟器 解决方法3 阅读全文
摘要:
使用String类的subString()方法进行截取。 public class Test2 { public static void main(String[] args) { String a = "123456789"; String b = a.substring(3,6); System 阅读全文
摘要:
使用String类的toCharArray()方法就好了 public class Test { public static void main(String[] args) { String string = "paolong"; char[] c = string.toCharArray(); 阅读全文
摘要:
用于设置EditText控件默认输入的内容类型 官方文档内容 android:inputType The type of data being placed in a text field, used to help an input method decide how to let the use 阅读全文