码迷,mamicode.com
首页 >  
搜索关键字:static final    ( 52231个结果
用于字符串拼接,字符串重合度以及偏移量算法
为了解决DNA序列的拼接以及检错,特写一下算法 package my.dna; /** * * @author mabixiang * */ public class Util2 { public static void main(String[] args) { String a = "lkjhgfasd"; String b = "sd5sflk"; resemb...
分类:其他好文   时间:2014-05-15 13:28:54    阅读次数:349
SourceFile Infomation
通常Java有三种编译方式,编译方式不同,那么得到的。class的大小也不同。   1)默认编译方式:javac A.java   2)  调试编译方式:javac -g A.java   3)  代码编译方式:javac -g:none A.java   案例如下:类A   public class A{   public static void main(String args[]...
分类:其他好文   时间:2014-05-15 13:06:11    阅读次数:216
try 返回前执行fianlly
try catch finally 语句中 如果try中有返回语句,如果在fianlly代码块中有对这个值修改的话,并不影响其放回值public class Test { public static void main(String[] string){ System.out.p...
分类:其他好文   时间:2014-05-15 10:38:40    阅读次数:209
选择排序
1 public class SlectedSort 2 { 3 public static void sort(int[] a) 4 { 5 int N = a.length; 6 for (int i = 0; i < N; i++) 7 ...
分类:其他好文   时间:2014-05-15 10:25:02    阅读次数:142
奇葩的细节
public class Test { public static void main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:其他好文   时间:2014-05-15 10:13:33    阅读次数:224
UC
public class Test{ public static void main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0)); }}//false...
分类:其他好文   时间:2014-05-15 10:03:08    阅读次数:216
数组 对象!!
public class Test { public static void main(String[] string){ int[] i = new int[10]; System.out.println(i.equals(null)); }...
分类:其他好文   时间:2014-05-15 09:54:00    阅读次数:250
归并排序算法学习
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace MegreSort{ class Program { static void Main(s...
分类:其他好文   时间:2014-05-15 09:21:59    阅读次数:171
C++11 virtual函数学习笔记
#include #include using namespace std; class Base { public: Base(){} ~Base(){} public: virtual void f1(int x){ cout "baseclass: f1() " x << endl; } virtual void f2()final{ cout "baseclass: f2()  "...
分类:编程语言   时间:2014-05-15 08:11:39    阅读次数:271
Web API 身份验证 不记名令牌验证 Bearer Token Authentication
1. Startup.Auth.cs文件添加属性public static OAuthBearerAuthenticationOptions OAuthBearerOptions { get; private set; }添加静态构造函数 /// /// 构造函数 ...
分类:Windows程序   时间:2014-05-15 07:45:25    阅读次数:1512
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!