Java coding

IOExpection

class java{
    static void main {
        BufferedReader buf = new BufferedReader(new InputStremaReader(System.in));
        //buf is variable
        String x = buf.readLine();
    }
}

OOP

  1. class variable
  2. constructor
  3. method
class java{
    //instance variable
    private String name;
    private int age;
    private Date dob;
    private boolean sex;
    //constructor
    public Person (String n, int a, Date d, boolean s0)
    {
        this.name = n; //"this." refer to global var
        this.age = a;
        this.dob = d;
        this.sex = s;
    }
    //method
    public void
    {
        Person = new Person("Name", 18, dob1, "Male");
    }
    public static void java(String arg[ ])
    {
         Person
    }
}
No Comments

Send Comment Edit Comment


|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
Previous
Next