码迷,mamicode.com
首页 >  
搜索关键字:generated    ( 1969个结果
黑马程序员——java--将一个int数组转换成一个字符串
将一个int 数组转换成字符串 并输出在控制台上 //将一个int 数组转换成一个字符串 public class IntToStringDemo { public static void main(String[] args) { // TODO Auto-generated method stub //定义一个int类型的数组 int[] i...
分类:编程语言   时间:2015-06-18 17:22:30    阅读次数:271
题目:求s=a+aa+aaa+aaaa+aa...a的值,其中a是一个数字。例如2+22+222+2222+22222(此时共有5个数相加), 几个数相加有键盘控制。
public static void main(String[] args) { // TODO Auto-generated method stub int a = 3;// int m = 3;//这个是个数 int result = a; int sum = a; for (int i = 1; i sum = 10 * sum + a; result += sum...
分类:其他好文   时间:2015-06-17 23:27:39    阅读次数:264
输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数
public class Test2 { public static void main(String[] args) { // TODO Auto-generated method stub int abcCount = 0;// 英文字母个数 int spaceCount = 0;// 空格键个数 int numCount = 0;// 数字个数 int otherCoun...
分类:其他好文   时间:2015-06-17 21:33:21    阅读次数:152
logical vs physical address
Logical vs physical address 1) An address generated by the CPU is a logical address. Whereas, an address seen by the memory unit, that is, the one lo....
分类:其他好文   时间:2015-06-17 00:27:57    阅读次数:117
Program terminated with signal 11, Segmentation fault.
今天写程序遇到一个问题:Program terminated with signal 11, Segmentation fault. gdb 调试现象如下: warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff1b1fc000 Core was generated by...
分类:其他好文   时间:2015-06-16 16:52:51    阅读次数:332
grid搜索最优参数
GridSearchCV详细地址:http://scikit-learn.org/stable/modules/generated/sklearn.grid_search.GridSearchCV.html#examples-using-sklearn-grid-search-gridsearchc...
分类:其他好文   时间:2015-06-15 18:27:57    阅读次数:269
Android之Handler的postDelayed()方法的用法
是一种可以创建多线程消息的函数 使用方法: 1,首先创建一个Handler对象 Handler handler=new Handler(); 2,然后创建一个Runnable对象 Runnable runnable=new Runnable(){    @Override    public void run() {     // TODO Auto-generated metho...
分类:移动开发   时间:2015-06-12 19:27:59    阅读次数:223
my.ini
# Other default tuning values # MySQL Server Instance Configuration File # ---------------------------------------------------------------------- # Generated by the MySQL Server Instance Configurat...
分类:其他好文   时间:2015-06-09 20:15:44    阅读次数:86
android listVIew实现button按钮监听程序
1.重写simpleAdapter 方法@Override public HashMap getItem(int position) { // TODO Auto-generated method stub return listItem.get(position); } public MyA...
分类:移动开发   时间:2015-06-09 16:26:05    阅读次数:133
Java 中包装类wrapped type之间以及和primitive type的比较
注意, 包装类的实例之间比较, 是不能直接用 == 的 public static void main(String[] args) { // TODO Auto-generated method stub Integer a = new Integer(1); ...
分类:移动开发   时间:2015-06-09 00:53:13    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!