2007年10月16日 星期二

961017程式設計文件

此鏈結將連到阿彥的xuite部落格。
有hinet會員者記得幫我加星星唷!

阿彥位於xuite blog 發表

Cisco第二章~第五章答案

此鏈結將連到阿彥的xuite部落格。
有hinet會員者記得幫我加星星唷!


第二章

第三章

第四章

第五章

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);

囗囗}

}

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]);
囗囗囗囗囗囗}
囗囗}

}

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]);

囗囗}

}

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);

囗囗}

}