课程总结 1.File类 如果要使用File类,则要使用File类的构造方法,且实例化File类的时候,必须要给出设置好的路径。 File类中的主要方法和常量: File类中的两个常量 pathSeparator:表示; separator:表示 ###2.RandomAccessFile类 常用的 ...
分类:
其他好文 时间:
2019-11-03 18:20:20
阅读次数:
87
课程总结: 本周主要对javaio进行了学习 1.操作文件的类--File File类的构造方法:public File(String pathname) 实例化File类的时候,必须设置好路径。 例如File f=new File(“d:”+File.separator+“test”+File.s ...
分类:
其他好文 时间:
2019-11-02 18:22:50
阅读次数:
95
package com.example.myapplication;import androidx.appcompat.app.AppCompatActivity;import android.content.Intent;import android.os.Bundle;import... ...
分类:
其他好文 时间:
2019-10-26 18:57:57
阅读次数:
82
<update id="updateTotalState" parameterType="java.util.List"> <foreach collection="list" item="item" index="index" open="" close="" separator=";"> UPD... ...
分类:
其他好文 时间:
2019-10-24 15:51:08
阅读次数:
62
javascript join()可以把将数组中的所有元素放入一个字符串中 语法格式 arrayObject.join(separator) separator为可选项,用于制定要使用的分隔符,如果省略该参数,则使用逗号作为分隔符。 ...
分类:
编程语言 时间:
2019-10-13 20:58:44
阅读次数:
124
1、首先需要弄明白什么是implicit(隐藏) intent什么是explicit(明确) intent。 Explicit Intent明确的指定了要启动的Acitivity ,比如以下Java代码: Intent intent= new Intent(this, SecondActivity. ...
分类:
移动开发 时间:
2019-10-11 10:31:57
阅读次数:
118
val isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT val intent = Intent(if (isKitKat) Intent.ACTION_OPEN_DOCUMENT else Intent.ACTION_GE ...
分类:
移动开发 时间:
2019-10-10 20:24:28
阅读次数:
148
split() 方法用于把一个字符串分割成字符串数组。 语法 返回值 一个字符串数组。该数组是通过在 separator 指定的边界处将字符串 stringObject 分割成子串创建的。返回的数组中的字串不包括 separator 自身。 但是,如果 separator 是包含子表达式的正则表达式 ...
分类:
编程语言 时间:
2019-10-10 15:43:13
阅读次数:
100
concat(str1,str2) 返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。 MySQL的concat函数在连接字符串的时候,只要其中一个是NULL,那么将返回NULL concat_ws(separator,str1,str2) contcat_ws() ...
分类:
数据库 时间:
2019-10-04 15:14:21
阅读次数:
120
public void onAttach这个代码片段如果缺少的话会出现这样一个错误,这个错误之前找了很久(小白)哈哈 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android. ...
分类:
移动开发 时间:
2019-10-02 14:51:34
阅读次数:
122