栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

React 配置化+Serverless 开发个人博客|分享使我快乐

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

React 配置化+Serverless 开发个人博客|分享使我快乐

download:+

React 配置化+Serverless 开发个人博客http://www.97yrbl.com/t-727.html

public class Beersong {
public static void main (String[] args){
int beernum =99;
String word = "bottle";
while (beernum>0){
if (beernum == 1){
word = "bootle";
}

System.out.print(beernum+""+word+"of beer on the wall");
System.out.println(beernum+""+"of beer");
System.out.println("Take one down.");
System.out.println("passit around.");
beernum = beernum -1;

   if (beernum>0); {
     System.out.println(beernum+""+"of beer on wall");
   }
   {
     System.out.println("No more bottles of beer on the wall");
   }
}
   
}         


}


2.class Books{
String title;
String author;
}
class BookTestDrive {
public static void main(String args[]){
Books[] myBooks = new Books[3];
int x = 0;
//创建books对象
myBooks[0]=new Books();
myBooks[1]=new Books();
myBooks[2]=new Books();

myBooks[0].title="The Grapes of Java";
myBooks[1].title="The Java Gatsby";
myBooks[2].title="The Java Cookbook";

myBooks[0].author="bob";
myBooks[1].author="sue";
myBooks[2].author="ian";

while(x<3){
System.out.println(myBooks[x].title);
System.out.println("by");
System.out.println(myBooks[x].author);
x=x+1;
}
}


}


3.class Cat{
int size;

String name;
void bark(){
if(size>60){
System.out.println("Woof!Woof!");
}else if(size>14){
System.out.println("Ruff!Ruff!");
}else{
System.out.println("Yip!Yip!");
}

}
}
class DogTestDrive {
public static void main(String[] args){
Cat one = new Cat();
one.size = 70;
Cat two = new Cat();
two.size = 8;
Cat three =  new Cat();
three.size = 35;

one.bark();
two.bark();
three.bark();
}
}
 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/490790.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号