GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Testing_code_mp_ped/TestVehicle.java at main · Xutete/Testing_code_mp_ped

Expand file tree

/

TestVehicle.java

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
50 lines (50 loc) · 1.29 KB
/

TestVehicle.java

Copy path

File metadata and controls

50 lines (50 loc) · 1.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
47
48
49
50
//package ped;
//
//import java.util.ArrayList;
//import java.util.List;
//
//public class TestVehicle {
// Node n1 = new Node(1, 0, 0);
// Node n2 = new Node(2, 1, 0);
// Node n3 = new Node(3, 2, -1);
// Node n4 = new Node(4, 2, 1);
// Node n5 = new Node(5, 3, 0);
//
// ArrayList<Node> path1 = new ArrayList<Node>() {
// {
// add(n1);
// add(n2);
// add(n3);
// add(n4);
// add(n5);
// }
// };
//
// ArrayList<Node> path2 = new ArrayList<Node>() {
// {
// add(n1);
// add(n3);
// add(n3);
// add(n5);
// add(n4);
// }
// };
//
// Vehicle v1 = new Vehicle(path1);
// Vehicle v2 = new Vehicle(path2);
//
// void testGetNextNode() {
// System.out.println("Test get next node");
// assert v1.getNextNode(0).getId() == 1;
// assert v1.getNextNode(1).getId() == 2;
// assert v1.getNextNode(2).getId() == 3;
// assert v1.getNextNode(3).getId() == 4;
// assert v1.getNextNode(4).getId() == 5;
// try {
// v1.getNextNode(5).getId();
// assert 1 == 2; // we should not reach here if the getNextNode is correct
// } catch (NullPointerException e) {
//
// }
// }
//}
You are visitor 01402792 — 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.