小型通讯录

来源:互联网 发布:如何复制淘宝图片 编辑:程序博客网 时间:2024/04/27 20:03
public class FriendTest {/** * @param args */public static void main(String[] args) {// TODO Auto-generated method stubFriend sy = new Friend();sy.show();}}class Friend {String name = "张三";String tele = "12345678912";String mail = "123@156.com";String comp = "你猜猜";void show() {System.out.println("名字:" + name);System.out.println("电话:" + tele);System.out.println("地址:" + mail);System.out.println("公司:" + comp);}}

0 0