此鏈結將連到阿彥的xuite部落格。
有hinet會員者記得幫我加星星唷!
阿彥位於xuite blog 發表
2007年10月16日 星期二
2007年10月3日 星期三
960919-HelloName 教學內容
因Blog內定文章格式關係,故以"囗"為空格請自行修改回去!
// This is the Hello Name program in Java
class HelloName {
囗囗public static void main (String args[]) {
//Declare the variable name to be a String
囗囗囗囗String name;
// Replace "Rusty" with your own name
囗囗囗囗name = "阿彥";
/* Now let's say hello */
囗囗囗囗System.out.println("Hello " + name);
囗囗}
}
// This is the Hello Name program in Java
class HelloName {
囗囗public static void main (String args[]) {
//Declare the variable name to be a String
囗囗囗囗String name;
// Replace "Rusty" with your own name
囗囗囗囗name = "阿彥";
/* Now let's say hello */
囗囗囗囗System.out.println("Hello " + name);
囗囗}
}
960919-Hello02 教學內容
因Blog內定文章格式關係,故以"囗"為空格請自行修改回去!
// This is the Hello program in Java
class Hello02 {
囗囗囗囗public static void main (String args[]) {
囗囗囗囗囗囗if (args.length > 0) {
囗囗囗囗囗囗囗囗System.out.println("Hello " + args[0]);
囗囗囗囗囗囗}
囗囗}
}
// This is the Hello program in Java
class Hello02 {
囗囗囗囗public static void main (String args[]) {
囗囗囗囗囗囗if (args.length > 0) {
囗囗囗囗囗囗囗囗System.out.println("Hello " + args[0]);
囗囗囗囗囗囗}
囗囗}
}
960919-Hello 教學內容
因Blog內定文章格式關係,故以"囗"為空格請自行修改回去!
// This is the Hello program in Java
class Hello {
囗囗囗囗public static void main (String args[]) {
/* Now let's say hello */
囗囗囗囗囗囗System.out.println("Hello " + args[0]);
囗囗}
}
// This is the Hello program in Java
class Hello {
囗囗囗囗public static void main (String args[]) {
/* Now let's say hello */
囗囗囗囗囗囗System.out.println("Hello " + args[0]);
囗囗}
}
960919-AddInts 教學內容
因Blog內定文章格式關係,故以"囗"為空格請自行修改回去!
class AddInts {
囗囗public static void main (String args[]) {
囗囗囗囗int i = 2;
囗囗囗囗int j = 3;
囗囗囗囗int k;
囗囗囗囗System.out.println("i is " + i);
囗囗囗囗System.out.println("j is " + j);
囗囗囗囗k = i + j;
囗囗囗囗System.out.println("i + j is " + k);
囗囗囗囗k = i - j;
囗囗囗囗System.out.println("i - j is " + k);
囗囗}
}
class AddInts {
囗囗public static void main (String args[]) {
囗囗囗囗int i = 2;
囗囗囗囗int j = 3;
囗囗囗囗int k;
囗囗囗囗System.out.println("i is " + i);
囗囗囗囗System.out.println("j is " + j);
囗囗囗囗k = i + j;
囗囗囗囗System.out.println("i + j is " + k);
囗囗囗囗k = i - j;
囗囗囗囗System.out.println("i - j is " + k);
囗囗}
}
訂閱:
文章 (Atom)