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 — JavaTest/src/main/java/Car.java at master · Org-codomodo/JavaTest Expand file tree/ Copy pathCar.javaMore file actions 28 lines (23 loc) · 492 Bytes / Copy pathCar.javaFile metadata and controls28 lines (23 loc) · 492 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 public class Car { public int gear; public int speed; public Car(int gear, int speed) { this.gear = gear; this.speed = speed; } public Car(){} public void applyBrake(int decrement) { speed -= decrement; } public void speedUp(int increment) { speed += increment; } public String toString() { return ("No of gears are " + gear + "\n" + "speed of bicycle is " + speed); } } |
| You are visitor 01402520 — 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. |