Discuss / Java / 得不到想要的结果

得不到想要的结果

Topic source

添加这样的元素:

q.offer(new User("ps1", "B2")); 

q.offer(new User("ps2", "C4"));

q.offer(new User("ps3", "A15"));

q.offer(new User("ps4", "A3"));

q.offer(new User("boss1", "V8"));

q.offer(new User("boss2", "V1"));

q.offer(new User("ps5", "A6"));

q.offer(new User("ps6", "A12"));

按上述方法得不到预想的结果:

boss2/V1

boss1/V8

ps4/A3

ps5/A6

ps6/A12

ps3/A15

ps1/B2

ps2/C4


  • 1

Reply