I got "The println method must display the number of cars (result of the getCarsCount method) for the passed WaterBridge object." What should be corrected to pass?
package com.codegym.task.task14.task1409;
/*
Bridges
*/
public class Solution {
public static void main(String[] args) {
println(new WaterBridge());
println(new SuspensionBridge());
}
public static int println(Bridge bridge) {
int c = bridge.getCarsCount();
System.out.println(c);
return c;
}
}