Train Simulation Problems

Hey everyone,

I am having trouble with this Train Simulation that I am working on for school. I don’t know what I have done wrong. I am not getting any errors but the output is just wrong. I am having problems with how many stations are being visited and also the station names. The station name that is being printed is [Ljava.lang.String;@27716f4 and I don’t know why.

You can find the main class MainClass and support class SubwayTrain
–> here.

If anyone can help I would greatly appreciate it.

Test data I am using

Number of Stations: 3
Home Station Number: 33
Maximum Capacity: 10

Enter fullscreen mode Exit fullscreen mode

原文链接:Train Simulation Problems

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容