1.1+2*3+(4+5*6)/(9-7) 2.1*2+3*(4+5)
括號:((1+(2*3))+((4+5*6)/(9-7))) 括號:((1*2)+(3*(4+5)))
前:++1*23/+4*56-97 前:+*12*3+45
後:123*+456*+97-/+ 後:12*345+*+
標籤
二元樹
(1)
字串常數池
(1)
投資
(3)
每月損益
(37)
例外處理
(1)
泛型
(2)
股票
(15)
指標
(5)
英文
(8)
基本資料型別
(1)
期貨
(1)
程式交易
(10)
量化投資
(5)
亂亂寫
(3)
概念
(3)
資料結構
(3)
演算法
(3)
數學
(3)
轉型
(1)
AMA
(1)
ArrayList
(1)
assert
(1)
BeautifulSoup
(1)
C/C++
(8)
casting
(1)
ClassCastException
(1)
classpath
(1)
Collection
(4)
Comparable
(1)
comparTo()
(1)
constructor
(1)
database
(3)
Debian
(1)
Dropbox
(2)
EA
(2)
enum
(1)
equals()
(2)
exception
(3)
extends
(1)
ffmpeg
(1)
final
(1)
Git
(1)
HashMap
(1)
HashSet
(1)
hasNext()
(1)
HTS
(3)
instanceof
(1)
IS-A
(1)
Iterator
(1)
JAVA
(43)
length
(1)
Linux
(31)
List
(1)
Mac
(6)
Map
(1)
ML
(2)
MT4
(6)
MySQL
(2)
next()
(1)
NullPointerException
(1)
Number
(1)
Numpy
(2)
OpenCart
(1)
OpenCV
(3)
OSX
(1)
overloading
(1)
overriding
(3)
pandas
(2)
PHP
(8)
PriorityQueue
(1)
Python
(11)
Queue
(1)
random()
(1)
reverse()
(1)
Samba
(1)
SCJP
(21)
sqrt()
(1)
synchronized
(1)
talib
(1)
ufw
(1)
uTorrent
(1)
var-args
(2)
VHF
(1)
vim
(2)
Yhoo知識+
(4)
2012年9月11日 星期二
實作abstract類別
Fruit.java
package food;
public abstract class Fruit{
protected String color;
protected String name;
public void setColor(String str){
color = str;
}
public abstract void show();
}
Apple.java
import food.Fruit;
class Apple extends Fruit{
protected int price;
public Apple(){}
public Apple(int price){
this.price = price;
}
public void setName(String name){
this.name = name;
}
public void setColor(String color){
this.color = color;
}
public void show(){
System.out.println("There is a fruit, it's color is " + color + ",it's an " + name + ".");
System.out.println("And the price of an apple is " + price + ".");
}
public static void main(String[] args){
Apple apple = new Apple(10);
apple.setName("Apple");
apple.setColor("red");
apple.show();
}
}
-------------------------------------------------------------------------
$ java -classpath /Users/superppp/Documents/java Apple
package food;
public abstract class Fruit{
protected String color;
protected String name;
public void setColor(String str){
color = str;
}
public abstract void show();
}
Apple.java
import food.Fruit;
class Apple extends Fruit{
protected int price;
public Apple(){}
public Apple(int price){
this.price = price;
}
public void setName(String name){
this.name = name;
}
public void setColor(String color){
this.color = color;
}
public void show(){
System.out.println("There is a fruit, it's color is " + color + ",it's an " + name + ".");
System.out.println("And the price of an apple is " + price + ".");
}
public static void main(String[] args){
Apple apple = new Apple(10);
apple.setName("Apple");
apple.setColor("red");
apple.show();
}
}
-------------------------------------------------------------------------
$ java -classpath /Users/superppp/Documents/java Apple
There is a fruit, it's color is red,it's an Apple.
And the price of an apple is 10.
2012年7月6日 星期五
2012年2月8日 星期三
111107_指標變數
”當您要取得int變數的記憶體位址時,會使用int*來宣告指標,要取得double變數的記憶體位址時,會使用double*來宣告指標,這是因為它們在進行加減法運算時,所位移的單位並不相同”(出處)
原來是這樣啊...難怪我想說指標不是只是一個方向嗎,為什麼還要加上資料型態呢?原來如此,原來如此
原來是這樣啊...難怪我想說指標不是只是一個方向嗎,為什麼還要加上資料型態呢?原來如此,原來如此
2011年12月18日 星期日
2011年12月12日 星期一
每天一發現暫停,改為每日背單字
因為”我每天都要學到一件以前不知道的事”這個標籤太長了,所以就暫停了。(什麼爛理由)
其實是事情太多(這更爛),來不及每日發現事物,所以我要改!
改成”每日背英單”!不是被單喔!
一天要背幾個隨便,至少一個,大於等於1的意思。(知道啦!)
好,那就從明天...今天開始吧!Go~
其實是事情太多(這更爛),來不及每日發現事物,所以我要改!
改成”每日背英單”!不是被單喔!
一天要背幾個隨便,至少一個,大於等於1的意思。(知道啦!)
好,那就從
訂閱:
文章 (Atom)