Ad
  • Default User Avatar

    Great, greast solution. Thats awsome!!!

  • Custom User Avatar

    This is a very tricky one - and it makes us utilize several methods that are available to the Array object. Thanks for all the hints and the tips on here! :D

  • Custom User Avatar

    Thank you so much! I'm not sure why but when it comes to reading programming instructions, I can't seem to understand the logic/problem/question. This makes so much more sense!

  • Custom User Avatar

    looks like you get a multidimensional array, i.e. int[][] arr = {{5,0},{8,3},{3,5},{2,1}};
    first int indcates people getting on bus, second int indicates people getting off bus. You can probably just do a for loop that adds all of the first
    integers and subtracts all of the second integers, should return just an int value of the remaining number of people on the bus.

  • Custom User Avatar

    I'm not quite sure I understand the task. :( I'm sorry but I am a total noob and it shows because I'm not sure what this task is asking for. I have an idea that I might have to use for loops, but I'm not understanding the problem.