import java.io.*;
public class test13
{
public static void main(String[] args)throws IOException
{
- Apr 19 Thu 2007 10:24
<Java-基礎篇>流程控制12-選單功能(do-while)
- Apr 18 Wed 2007 19:10
<Java-基礎篇>流程控制11-計算使用者輸入字母或數字次數(do-while)
import java.io.*;
public class test12{
public static void main(String[] args)throws IOException {
BufferedReader input = new BufferedReader
- Apr 18 Wed 2007 19:09
<Java-基礎篇>流程控制10-顯示0~127字元ASCII(while)
public class test11{
public static void main(String[] args){
int i=0,j=0;
while(i {
- Apr 18 Wed 2007 11:31
<Java-基礎篇>流程控制09-顯示*狀排列(巢狀For)
public class test10{
public static void main(String[] args){
for(int i=1;i {
for(int k=1;k {
- Apr 18 Wed 2007 11:28
<Java-基礎篇>流程控制08-從1加到10(for)
public class test09{
public static void main(String[] args){
int i;
int sum=0;