public class Hello { public static void star(int j) { for (int i=1;i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main(String[] args) { int j; for (j=5;j>=1;j--) { star(j); } } }
public class hello { public static void star(int j) { for(int i=1;i<=j;i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String[] args){
public class hello { public static void star(int j) { for (int i = 1 ; i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main (String[] args){ int j; for (j=5;j>=1;j--) { star(j); } }
2.public class hello{ public static void star(int j) { for (int i=1;i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main (String[] args){ int j; for (j=5;j>=1;j--) { star(j); } }
public class hello{ public static void star(int j) { for (int i=1;i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main(String [] args){ int j; for (j=5;j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1;i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main(String [] args){ int j; for (j=5;j>=1;j--) { star(j); } } }
作業二 public class hello{ public static void star(int j) { for (int i=1;i<=j;i++) { System.out.print("*"); } System.out.println(); } public static void main(String [] args){ int j; for (j=5;j>=1;j--) { star(j); } } }
public class hello{ public static void star(int j) { for (int i=1; i<=j; i++) { System.out.print("*"); } System.out.println();//斷行 } public static void main (String [] args){ int j; for (j=5; j>=1;j--) { star(j); } } }
61 則留言:
1234567
public class hello
{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args)
{
int j;
for (j=5; j>=1; j--)
{
star(j);
}
}
}
1234567
-
public class hello{
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] arg){
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class dolphin {
public static void star(int j){
for(int i=1;i<=j;i++){
System.out.print("*");
} System.out.println();
}
public static void main(String[] args) {
int j;
for(j=5;j>=1;j--){
star(j);
}
}
}
第一題:
1234567
------
第二題:
public class hello {
public static void star(int j)
{
for ( int i=0;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class Hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String []args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args) {
int j;
for(j=5; j>=1; j--)
{
star(j);
}
}
}
1234567
public class Hello {
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello
{
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args)
{
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello2
{
public static void main(String[] args){
String i="123456";
int x=7;
System.out.println(i+x);
}
}
第一題:1234567
第二題:public class Hello{
public static void star(int j)
{
for(int i=5;i>=j;i--)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args){
int j;
for (j=1;j<=5;j++)
{
star(j);
}
}
}
第一題:12345367
第二題:public class Hello2 {
public static void star(int j)
{
for(int i=5;i>=j;i--)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for( j=1;j<=5;j++)
{
star(j);
}
}
}
第一題:
1234567
第二題:
public class hello{
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] arg){
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
第一題答案:1234567
第二題原始碼:
public class hello2 {
public static void star(int j)
{
for(int i=5;i>=j;i--)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for(j=1;j<=5;j++)
{
star(j);
}
}
}
輸出為 1234567
public class heiio {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
1234567
public class Hello {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println("");//D
}
public static void main(String[] args){
int j;
for(j=5; j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class b9733191 {
public static void main(String[] args) {
for(int i=5; i>=0;i--)
{
for(int j=1;j<=i; j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
1234567
public class hello {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1. 1234567
2.
public class hello {
public static void star(int j)
{
for (int i =1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main (String[] args){
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
public class hello {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String[] args){
int j;
for (j=5;j>=1;j-- )
{
star(j);
}
}
}
A1:1234567
A2:
public class hello {
public static void star(int j)
{
for (int i = 1 ; i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main (String[] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main (String[] args){
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1. 1234567
2.
public class hello {
public static void star(int j)
{
for (int i =1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args)
{
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main (String[] args){
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1. 1234567
2.public class hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main (String[] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
A1:1234567
A2:
public class hello {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1. 1234567
2.
public class hello {
public static void star(int j)
{
for (int i =1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
輸出為 1234567
public class heiio {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main(String[] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class hello
{
public static void star(int j)
{
for(int i=1;i<=j;i++){System.out.print("*")
}System.out.println();
}public static void main(String[] args)
{
int j;
for(j=5;j>=1;j--){
star(j);
}
}
}
1.1234567
2.public class Quizz229 {
public static void star (int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
for (int j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class b10033016 {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
答案:1234567
public class hello2 {
public static void star(int j) {
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
// 作業二
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class Quizz229 {
public static void star (int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
for (int j=5;j>=1;j--)
{
star(j);
}
}
}
1.
1234567
2.
public class Hello{
public static void star (int j)
{
for(int i=1; i<=j; i++)
{
System.out.print ("*");
}
System.out.println ();
}
public static void main (String [] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
1234567
public class b10033016 {
public static void star(int j)
{
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
答案:1234567
public class hello2 {
public static void star(int j) {
for(int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
// 作業二
int j;
for(j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
第一題 1234567
第二題
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
--------------------Configuration: --------------------
1234567
Process completed.
1. 1234567
2.public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
1.1234567
2.public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
作業1: 答案為1.2.3.4.5.6.7
作業一
1234567
作業二
public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
作業一
1234567
作業二
public class hello{
public static void star(int j)
{
for (int i=1;i<=j;i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String [] args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
1234567
public class hello{
public static void star(int j)
{
for (int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();//斷行
}
public static void main (String [] args){
int j;
for (j=5; j>=1;j--)
{
star(j);
}
}
}
第一題:12345367
第二題:public class Hello2 {
public static void star(int j)
{
for(int i=5;i>=j;i--)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args) {
int j;
for( j=1;j<=5;j++)
{
star(j);
}
}
}
第一題
1234567
第二題
public class Hello{
public static void star(int j)
{
for(int i=5;i>=j;i--)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String[] args){
int j;
for (j=1;j<=5;j++)
{
star(j);
}
}
}
1234567
public class Hello {
public static void star(int j)
{
for(int i=1; i<=j; i++)
{
System.out.print("*");
}
System.out.println();
}
public static void main(String []args){
int j;
for (j=5;j>=1;j--)
{
star(j);
}
}
}
張貼留言