大纲: 1.控制台输入 <实例> package 基本数据类型; //scanner引入的类import java.util.Scanner;//来自Scanner+ALT+/ public class 控制台输入 { public static void main(String[] args) {
分类:
其他好文 时间:
2016-02-24 21:03:24
阅读次数:
238
首先上效果图: 编辑器代码: using UnityEngine; using UnityEditor; using System.Collections; public class LightmapAnalysisEditor : EditorWindow { private static Edi
分类:
Web程序 时间:
2016-02-24 20:45:38
阅读次数:
368
1.判断变量是否为奇数偶数。 package com.JAVA; import java.util.Scanner; public class text { public static void main(String[] args) { System.out.print("请输入一个数:"); S
分类:
编程语言 时间:
2016-02-24 19:20:42
阅读次数:
182
1.自动类型转换 自动类型转换又称作隐式转换,可以将一个int变量转换为float类型。 1 public class Conver { 2 public static void main(String[] args) { 3 4 byte mybyte = 127; 5 int myint = 1
分类:
编程语言 时间:
2016-02-24 17:30:31
阅读次数:
267
一、Java中的四舍五入 public static void test(){ System.out.println(Math.round(12.5d)); System.out.println(Math.round(-12.5d)); //使用银行家算法 BigDecimal d=new BigD...
分类:
编程语言 时间:
2016-02-24 17:30:06
阅读次数:
238
class Base { var base_x = 0 static var base_y = 1 final var base_z = 12 func baseInc() { base_x += 1 } class func baseMuti() { base_y -= 1 } } class P
分类:
编程语言 时间:
2016-02-24 17:21:51
阅读次数:
181
场景:找出一个关键词在一条短信中出现的次数 使用正则的实现方式: public static int findKeyWordCount(String srcText, String keyword) { int count = 0; Pattern p = Pattern.compile(keywo
分类:
移动开发 时间:
2016-02-24 13:56:06
阅读次数:
214
x264最新包地址:http://www.videolan.org/developers/x264.html 编译命令: ./configure --enable-static --host=i386-apple-darwin --host选项请参考一下连接 http://gcc.gnu.org/i
分类:
系统相关 时间:
2016-02-24 12:22:30
阅读次数:
282
以下程序的输出结果是( )。 using System; namespace HoverTreeTikuConsole { class Program { static void Main(string[] args) { MyStruct s1 = new MyStruct(1, 2); s1.x
下面是服务端的代码 package lyj.srever; public class Server { public static void main(String[] args) { new ServerThread().start(); } } package lyj.srever; impor
分类:
移动开发 时间:
2016-02-24 09:19:05
阅读次数:
330