【轉】 Java大數的一些整理體會大數的兩個庫BigInteger,BigDecimal。分別是大整數和大實數(具體有多大不詳)。操作:1. 包含:import java.math.*;2. 申請:單個元素:BigInteger a, b; BigDecimal a, b;數組:BigInteger a[];a = new BigInteger[1024];BigDecimal a[];a = new BigDecimal[1024];3. 賦值:a[1] =
JavaEE 7規範集JSRs:Java Platform, Enterprise Edition 7 (JSR 342)Concurrency Utilities for Java EE 1.0 (JSR 236)Java Persistence 2.1 (JSR 338)JAX-RS: The Java API for RESTful Web Services 2.0 (JSR 339)Java Servlet 3.1 (JSR 340)Expression Language 3.0
今天使用Maven和Mybatis,在Eclipse上開發j2ee的程式。本人剛學Mybatis,對Maven還算熟悉,看過書,用的時間不長。本想試下Mybatis的selectList,結果程式編譯通過,運行時報錯:org.apache.ibatis.exceptions.PersistenceException: ### Error opening session. Cause: java.sql.SQLException: No suitable driver found for
public class IfOnly { public static void main(String[] args){ int income = 1100000; if(income >= 1000000) System.out.println("去澳洲看無尾熊"); if(income >= 500000) System.out.println("去四川看熊貓"); if(income <
1 getClass()方法 ,由注釋可知返回的是運行是實際的類型,不是聲明的類型。// The Class object that represents the runtime class of this object. public final native Class<?> getClass();2 /** * Returns a hash code value for the object. This method is *
public class ReflectTest {private volatile String name = "before";public void setName(String name) {this.name = name;}public static void main(String[] args) {ReflectTest test = new ReflectTest();try {System.out.println(getValue(test,