java.lang.StackTraceElement堆疊追蹤元素。一系列該類的執行個體描述了方法呼叫堆疊的資訊。該類的出現使對方法呼叫堆疊提供個人化處理成為可能。java.lang.StrictMath精確數學運算類。該類提供了基本數學運算方法的精確實現。這些方法的實現演算法來源於眾所周知的網路程式庫??"Freely Distributable Math Library"。java.lang.String字串類。唯一的對象基礎資料型別 (Elementary Data Type)。無需多言。
(九)大數值這個東東一般不太常用,所以在此就簡單說下吧首先,超過32位就要使用它,是包含在java.math包中的兩個很有用的類BigInteger和BigDecimal需要注意的是,他們不能使用-+/*=,需要使用add(); subtract();multiply();divide()mod();compareTo();valueOf();(十)數組初始化int a[] = new int[20]; int c[]; // declare array variable c = new
(六)字串1.在這裡需要指出的是它是一個對象,不是一個字元數組2.他是不可變的,沒有append()或reverse()3.要用雙引號,串連時用+4.給出一些常用函數,相關的可查看API文檔toString();int length() -- number of charschar charAt(int index) -- char at given 0-based indexint indexOf(char c) -- first occurrence of char, or -1int
(七)讀取輸入/* * To change this template, choose Tools | Templates * and open the template in the editor. */package readinput;import javax.swing.JOptionPane;/** * * @author vanessa */public class Main { /** * @param args the command line arguments
一、JavaMail API簡介JavaMail API是讀取、撰寫、發送電子資訊的可選包。我們可用它來建立如Eudora、Foxmail、MS Outlook Express一般的郵件使用者代理程式(Mail User Agent,簡稱MUA)。而不是像sendmail或者其它的郵件傳輸代理程式(Mail Transfer Agent,簡稱MTA)程式那樣可以傳送、遞送、轉寄郵件。從另外一個角度來看,我們這些電子郵件使用者日常用MUA程式來讀寫郵件,而MUA依賴著MTA處理郵件的遞送。在清楚了
前言:雖然說學過設計模式,J2EE,這個學期才開始學Java,呵呵,有點顛倒了,但是還是要從基本的抓起。hoho~~(一)一個簡單的java應用程式 Package edu.ynu.java.lession1/* The simplest Java program */public class FirstJavaProg { public static void main(String[] args) { // System.out is the standard
(八)控制流程程1.塊範圍public static void main(String[] args){ int n; . . . { int k; . . . } // k is only defined up to here}public static void main(String[] args){ int n; . . . { int k; int n; // error--can't redefine n in