<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:PMingLiU; panose-1:2 2 5 0 0 0 0 0 0 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:PMingLiU; panose-1:2 1 6 1 0 1 1 1 1 1;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4;}...
I want to avoid shooting some robots, so I try to print the names out first to test. Then, I saw the string on the console but all the name are #1, #2, #3.... Code: public void onScannedRobot(ScannedRobotEvent e) { out.println("Scanned robot: " + e.getName()); } Console: Scanned robot: #7 Scanned robot: #4 Scanned robot: #1 Why I get these weird outputs and how can I get the correct string like "package name.class name".
I want to avoid shooting some robots, so I try to print the names out first to test. Then, I saw the string on the console but all the name are #1, #2, #3.... Code: public void onScannedRobot(ScannedRobotEvent e) { out.println("Scanned robot: " + e.getName()); } Console: Scanned robot: #7 Scanned robot: #4 Scanned robot: #1