GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaProgramming/Const.java at main · saudahmedkadapa/JavaProgramming Expand file tree/ Copy pathConst.javaMore file actions 46 lines (36 loc) · 695 Bytes / Copy pathConst.javaFile metadata and controls46 lines (36 loc) · 695 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 class MainEmployee { public MainEmployee() { int id=54; String name="Saud ahmed"; } private int id; private String name; public String getName() { return name; } public void setName(String n) { this.name=n; } public void setid(int i) { this.id=i; } public int getid() { return id; } } public class Const { public static void main(String[] args) { MainEmployee me=new MainEmployee(); me.setName("Saud ahmed"); me.setid(54); System.out.println(me.getid()); System.out.println(me.getName()); } } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |