Hirdetés
Új hozzászólás Aktív témák
-
Lacces
őstag
Már meg van a megoldás :-D
System.out.println("Enter the radius and length of a cylinder:");
Scanner sc = new Scanner(System.in);
String radiusAsString = sc.next();
String lengthAsString = sc.next();
double radius = Double.parseDouble(radiusAsString);
double length = Double.parseDouble(lengthAsString);Ehhez a verzióhoz mit szólsz?
System.out.println("Enter the radius and length of a cylinder:");
Scanner sc = new Scanner(System.in); Pattern newlineOrSpace =
Pattern.compile(System.getProperty("line.separator") + "|\\s");
sc.useDelimiter(newlineOrSpace);
double radius=sc.nextDouble();
double length=sc.nextDouble();
Új hozzászólás Aktív témák
A topicot kiemeltem. Valaki nem akar egy nyitó hsz-t írni?:))
- CoolerMaster MM710 53gr pehelykönnyű gamer egér eladó
- Apple iPhone 13 / 256GB / Kártyafüggetlen / 12Hó Garancia / Akku:100%
- Eladó Apple iPhone 12 Pro Max 256GB / 12 hó jótállás
- Telefon felvásárlás!! iPhone 13 Mini/iPhone 13/iPhone 13 Pro/iPhone 13 Pro Max
- Xbox One S 512 GB + kontroller 6 hó garancia, számlával!
Állásajánlatok
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest


