• java8新特性stream接口(3)


    package com.test.lambda;

    public class Person {

      enum Sex{
        MALE,FEMALE
      }

      private String name;
      private Sex sex;
      private int age;
      public String getName() {
        return name;
      }
      public void setName(String name) {
        this.name = name;
      }
      public Sex getSex() {
        return sex;
      }
      public void setSex(Sex sex) {
        this.sex = sex;
      }
      public int getAge() {
        return age;
      }
      public void setAge(int age) {
        this.age = age;
      }
      public Person(String name, Sex sex, int age) {
        super();
        this.name = name;
        this.sex = sex;
        this.age = age;
      }
      @Override
      public String toString() {
        return "Person [name=" + name + ", sex=" + sex + ", age=" + age + "]";
      }


    }

  • 相关阅读:
    day 48
    40 协程 多路复用
    JQuery
    JS DOMBOM
    psotgres、timescaledb
    crontab命令
    Go语言结构体和方法
    Go语言锁的使用
    Go语言map数据结构
    ZOJ 3777 Problem Arrangement
  • 原文地址:https://www.cnblogs.com/zzlcome/p/11052976.html
Copyright © 2020-2023  润新知