Score
0
Watch 25 Star 104 Fork 12

Gitee星球的小活动 / 第 0 届 代码编故事接力赛

Join us
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
让我们点燃程序员写作之魂,一人用代码写一段故事玩玩吧~ spread retract

Clone or download
java-啊,不要.md 1.22 KB
Copy Edit Web IDE Raw Blame History
滚烫雪糕 authored 2020-03-26 09:58 . update java-啊,不要.md.

// 编程语言: java // 故事主题: 啊!不要

public class No {

    public static void main(String[] args) {
        Persion persion = new Persion();
        persion.setName("小明");
        persion.setAge(3);
        history1(persion);


//        ... 请扩展
    }




//    故事一
//    编写时间:2020-03-25 14:06:00
    private static void history1(Persion persion) {
        System.out.println( persion.getName() + "出生在一个小资家庭,当他长到" + persion.getAge() + "岁的时候" );
        System.out.println( "有一天,他的爸爸和妈妈来到他身边,非常和蔼的给他商量:\" 小明,你也不小了,都是3岁的大人了\"" );
        System.out.println( "爸爸哽噎的说道:\" 是时候送你去少管所了\"" );
        System.out.println(" 小明大声说道:\"啊!不要\"" );
    }
}



class Persion{
    String name;
    Integer age;
//    请扩展

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

Comment ( 0 )

Sign in for post a comment

1
https://gitee.com/Selected-Activities/Code-relay.git
git@gitee.com:Selected-Activities/Code-relay.git
Selected-Activities
Code-relay
第 0 届 代码编故事接力赛
master

Help Search

220309 7019f5b6 1899542 220318 4015cbb9 1899542