title: How to create a temporary object without arguments
body: <p>How can I create a temporary object without initializing, as I would need to write &quot;random&quot; arguments.
  For example, I've got a class</p>
  <pre><code>public class myCar{
  
    String colour; 
    int price;
    public myCar(String colour, int price){
       this.colour= colour;
       this.price= price;
    }
  }
  </code></pre>
  <p>So for example, in another class there is list of myCars:</p>
  <pre><code>public class reportCars{
    
    ArrayList&lt;myCar&gt; allCars = new ArrayList&lt;myCar&gt;();
  
    public myCar findCheapestCar(){
       myCar tempCar = new Car(); // **what should I do here, as it obviously
                requires two arguments for initialization, but I will need it just
                as temporary thing to save the result from my loop**
       int tempLowest = -1; // temporary integer to store lowest value
       for(int i=0; i &gt; allCars.size(); i++){
          if(tempLowest &gt; allCars.get(i).value){
              tempLowest = allCars.get(i).value;
              tempCar = allCars.get(i);
          }
       }
       return tempCar;
    }
  }
  </code></pre>
  <p>So the question is, how do I create an empty object without anything to save it within the loop. Or maybe I am doing it wrong and I should use another approach?</p>