How can i create a seperate file for the other classes/interfaces when I'm using the codegym-environment and not intelij?
Wie kann ich eine seperate Datei für meine Klassen/Interfaces erstellen wenn ich diese Entwicklungsumgebung verwenden möchte und nicht intellij?
package de.codegym.task.task14.task1409;
/*
Brücken
*/
public class Solution {
public static void main(String[] args) {
println(new WaterBridge());
println(new SuspensionBridge());
}
// Add println method here
}
interface Bridge{
int getCarsCount();
}
public class WaterBridge implements Bridge{
public int getCarsCount(){
return 0;
}
}
public class SuspensionBridge implements Bridge{
public int getCarsCount(){
return 0;
}
}