Aktywne Wpisy

#pogoda toż nawet Hiob nie był tak testowany przez Boga.
Czym żem zawinił?
Czym żem zawinił?
źródło: Screenshot_20260728_045629_Weather
Pobierz
annlupin +28
misiek po czwartej nad ranem
źródło: annlupin7899098
PobierzSkopiuj link
Skopiuj link
źródło: Screenshot_20260728_045629_Weather
Pobierz
źródło: annlupin7899098
PobierzRegulamin
Reklama
Kontakt
O nas
FAQ
Osiągnięcia
Ranking
import java.nio.file.*;
public class Kopiowanie {
public static void main(String[] args) throws IOException {
Files.copy(Paths.get("E:/atom/in.txt)",Paths.get("E:/atom/nowy/in3.txt"), StandardCopyOption.REPLACEEXISTING));
}
}
Co w tym źle? Z kompilatora:
Kopiowanie.java:6: error: method get in class Paths cannot be applied to given types;
Files.copy(Paths.get("E:/atom/in.txt)",Paths.get("E:/atom/nowy/in3.txt"), StandardCopyOption.REPLACEEXISTING));
^
required: String,String[]
found: String,Path,StandardCopyOption
reason: varargs mismatch; Path cannot be converted to String
#naukaprogramowania #java