1.传递参数 传值: Intent intent=new Intent(); intent.putExtra("extra", "这是页面一传来的值!"); intent.setClass(Test_for_intentActivity.this, actpage2.clas...
分类:
其他好文 时间:
2015-05-24 21:44:45
阅读次数:
111
写代码:
1,明确需求。我要做什么?
2,分析思路。我要怎么做?1,2,3。
3,确定步骤。每一个思路部分用到哪些语句,方法,和对象。
4,代码实现。用具体的java语言代码把思路体现出来。
学习新技术的四点:
1,该技术是什么?
2,该技术有什么特点(使用注意):
3,该技术怎么使用。demo
4,该技术什么时候用?test。
---------------------...
分类:
编程语言 时间:
2015-05-24 14:17:47
阅读次数:
99
实例(从小向大排序)://数组冒泡算法import java.util.Scanner;public class Test{ public static void main(String[] args){ int[] arr = {23,12,45,24,87,65,...
分类:
编程语言 时间:
2015-05-24 14:14:00
阅读次数:
140
一、复制数组算法//数组复制算法public class Test{ public static void main(String[] args){ int[] arrA = {100,800,500,600,700}; int[] arrB...
分类:
编程语言 时间:
2015-05-24 14:06:59
阅读次数:
161
root 123456 com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/test_hibernate o...
分类:
Web程序 时间:
2015-05-24 12:56:35
阅读次数:
186
在linux下面动态库的使用是非常常用的,也是非常实用的。
步骤一:
创建一个.h头文件 ,头文件中声明动态库中的函数
#ifndef _TEST_H_
#define _TEST_H_
#ifdef __cplusplus /*c c++ 混合编程*/
extern "C" {
#endif /*c c++ 混合编程*/
int...
分类:
系统相关 时间:
2015-05-24 11:40:05
阅读次数:
177
一、数组升序排序实例:import java.util.Arrays; //导入数组处理public class Test{ public static void main(String[] args){ int[] arr = new int[5]; ...
分类:
编程语言 时间:
2015-05-24 11:32:39
阅读次数:
137
实例:import java.util.*;//求学生最大成绩public class Test{ public static void main(String[] args){ System.out.println("=======求学生最大成绩========="); ...
分类:
编程语言 时间:
2015-05-24 11:22:02
阅读次数:
189
实例:知识点:数组名.length是计算数组的长度import java.util.*;//求学生平均分成绩public class Test{ public static void main(String[] args){ Scanner in = new Scan...
分类:
编程语言 时间:
2015-05-24 11:16:29
阅读次数:
322
1关于test测试,查看man文档知表达式的判断(EXPRESSION)#EXPRESSIONistrue!EXPRESSION#EXPRESSIONisfalseEXPRESSION1-aEXPRESSION2#botharetrue,-omeansor字符串是否为空,相等-nSTRING#thelengthofSTRINGisnonzero,-ncanberemoved-zSTRING#thelengthofSTRINGiszero(nonexists..
分类:
系统相关 时间:
2015-05-24 06:41:59
阅读次数:
184