So then what is the purpose of the not operator in that same method call? (I'm referring to the lines you have quoted)
Type: Posts; User: billyjthorton
So then what is the purpose of the not operator in that same method call? (I'm referring to the lines you have quoted)
So when the method returns true, it converts it to false?
Yea, that makes sense, but what about the original question and what's happening on that line...
Here is the missing class:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package railroadwithstacks;
but how does it know to move something to the holding track? All it is is checking that statement's Boolean value (if its true or false) and doesn't actually do the operation....
Hello all,
I was creating a program for a homework assignment and I came across a problem. The assignment is a simulation of a train track. It gives you an array of train cars and using stacks,...