课堂测试22

import com.immoc.hadoop.HDFSApp;
import com.immoc.hadoop.HDFS_Classtest2;
import org.junit.Test;

import java.util.Scanner;

public class Input {
    public static void main(String[] args)throws Exception {
        int flag =1;
        while(flag !=0){
        System.out.println("欢迎来到HDFS文件操作编辑器:\n输入操作功能的序号:\n");
        System.out.println("[1]:新建:新建文本文件");
        System.out.println("[2] 打开:打开指定目录下的文本文件,并将文本内容显示在编辑区");
        System.out.println("[3]编辑:向 HDFS 中指定的文件追加内容,由用户指定内容追加到原有文件的开头或结尾;");
        System.out.println("[4]退出系统");
        System.out.println("输入操作功能的序号:\n");
        Scanner in = new Scanner(System.in);
        int select = in.nextInt();
        HDFS_Classtest2 hdfs = new HDFS_Classtest2();
        hdfs.setUp();
        if(select==1){
            hdfs.create();
        }else if(select==2){
            hdfs.cat();
        }else if(select==3){
            System.out.println("请输入您想添加的内容:");
           String str = in.next();
           hdfs.add(str);
        }else if(select==4){
           flag=0;
        }else{
            System.out.println("输入错误请重新输入!");
        }

        hdfs.tearDown();

        }
    }
}

转载于:https://www.cnblogs.com/wxd136/p/9763627.html

蕴瑜课堂大学英语(四) unit 2 customs 第二章测试答案如下: 第一部分:听力(共20分) 1. B 2. C 3. A 4. B 5. C 6. C 7. A 8. C 9. B 10. A 第二部分:语言知识运用(共30分) 11. B 12. A 13. C 14. B 15. C 16. A 17. C 18. B 19. A 20. B 21. C 22. A 23. B 24. C 25. A 第三部分:阅读理解(共40分) 26. D 27. A 28. C 29. B 30. C 31. D 32. B 33. A 34. D 35. A 36. C 37. B 38. D 39. C 40. A 第四部分:写作(共10分) One possible version: Customs are a fascinating aspect of different countries and cultures. They reflect the values, traditions, and behaviors that are important to a particular group of people. In my country, China, customs play a significant role in our daily lives. For example, the Spring Festival is our most important traditional holiday. During this time, families gather together to celebrate and show respect to our ancestors. We also give red envelopes with money to children and cook special dishes for the occasion. Another important custom is the Dragon Boat Festival, where we eat sticky rice dumplings and watch dragon boat races. In contrast, the customs in Western countries may vary greatly. For instance, Christmas is a major holiday in many Western countries. It is celebrated on December 25th and involves decorating trees, giving gifts, and sharing meals with loved ones. Halloween is also a widely celebrated custom in Western countries, where people dress up in costumes, go trick-or-treating, and carve pumpkins. Understanding and respecting customs is essential when visiting or interacting with people from different cultures. It allows us to appreciate the diversity and uniqueness of different customs and enhances cultural understanding and cooperation.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值