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 — Source-Code-from-Tutorials/Java_Beginners/47_javaBeginners.java at master · SF5/Source-Code-from-Tutorials Expand file tree/ Copy path47_javaBeginners.javaMore file actions 39 lines (33 loc) · 1018 Bytes / Copy path47_javaBeginners.javaFile metadata and controls39 lines (33 loc) · 1018 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 public class apples { public static void main(String[] args){ tuna member1 = new tuna("Megan", "Fox"); tuna member2 = new tuna("Natalie", "Portman"); tuna member3 = new tuna("Taylor", "Swift"); System.out.println(); System.out.println(tuna.getMembers()); System.out.println(); System.out.println(member2.getFirst()); System.out.println(member2.getLast()); System.out.println(member2.getMembers()); } } public class tuna { private String first; private String last; private static int members = 0; public tuna(String fn, String ln){ first = fn; last = ln; members++; System.out.printf("Constructor for %s %s, members in the club : %d\n", first, last, members); } public String getFirst(){ return first; } public String getLast(){ return last; } public static int getMembers(){ return members; } } |
| You are visitor 01402775 — 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. |