码迷,mamicode.com
首页 >  
搜索关键字:static    ( 45277个结果
输入一个数判断上午下午几点
namespace ConsoleApplication5{ class Program { static void Main(string[] args) { Console.Write("请输入时间"); int a = int.Parse(Console.ReadLine()); string ...
分类:其他好文   时间:2016-03-31 23:16:03    阅读次数:162
加减乘除
namespace ConsoleApplication4{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("a的数字:"); int a = int.Parse(Console. ...
分类:其他好文   时间:2016-03-31 23:07:51    阅读次数:160
判断闰年
namespace ConsoleApplication8{ class Program { static void Main(string[] args) { Console.Write("请输入年份:"); int a = int.Parse(Console.ReadLine()); if (a ...
分类:其他好文   时间:2016-03-31 23:03:10    阅读次数:117
查询成绩
namespace ConsoleApplication9{ class Program { static void Main(string[] args) { Console.Write("姓名:"); Console.ReadLine(); Console.WriteLine("成绩:"); d ...
分类:其他好文   时间:2016-03-31 23:00:24    阅读次数:111
作业1
import java.util.Scanner;public class Main { public static void main (String[] args){ Scanner input =new Scanner(System.in); System.out.println("输入字符串 ...
分类:其他好文   时间:2016-03-31 20:26:12    阅读次数:103
java4
public class xt6_1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String str1="Java技术学习班20070326"; ...
分类:编程语言   时间:2016-03-31 20:22:26    阅读次数:268
第二次java
public class disi{ public static void main(String arg[]){ int shuzu[]={1,3,4,5,6,6,5,4,7,6,7,5}; he(shuzu); sort(shuzu); } public static void he(int t ...
分类:编程语言   时间:2016-03-31 20:14:37    阅读次数:202
Java时间日期格式转换
Java时间格式转换大全 import java.text.*; import java.util.Calendar; public class VeDate { /** * 获取现在时间 * * @return 返回时间类型 yyyy-MM-dd HH:mm:ss */ public static ...
分类:编程语言   时间:2016-03-31 18:52:32    阅读次数:389
static静态结合&符号理解
上代码,方法定义为静态变量 结果: 方法中不定义静态的 结果 静态是全局的,所以$a改变值将方法中的$c覆盖;第二次是局部变量,所以无法改变。 ...
分类:其他好文   时间:2016-03-31 18:44:27    阅读次数:125
算法(二):查找
一 、 线性查找(顺序查找) public class LSearch { public static int[] Data = { 12, 76, 29, 22, 15, 62, 29, 58, 35, 67, 58, 33, 28, 89, 90, 28, 64, 48, 20, 77 }; / ...
分类:编程语言   时间:2016-03-31 16:51:26    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!