Erinevus lehekülje "ITI0011:harjutus 05" redaktsioonide vahel
(→Mall) |
|||
31. rida: | 31. rida: | ||
<source lang="java"> | <source lang="java"> | ||
public class EX05 { | public class EX05 { | ||
− | public static | + | public static int convert(String inputFilename, String outputFilename) { |
− | |||
− | |||
− | |||
− | |||
} | } |
Redaktsioon: 22. veebruar 2016, kell 18:33
Tähtaeg: 29. veebr - 1. märts 2016
Kaust git'is: EX05
Ülesanne
Bob ja Alice on filmisõltlased. Nad võistlevad, kumb teab filmidest rohkem ning nõustusid mõlemad meelde jätma 20 populaarse filmi andmed - filmi nime, hinde, kirjelduse ja ilmumiskuupäeva. Kuna nad elavad paigas, kus Internet on katkendlik, siis laadivad nad filmide info alla ja salvestavad need hilisemaks lugemiseks. Ette on antud nimekiri, milles iga rida tähistab mõnda hiljutist filmi. Filmi iseloomustavad andmed on eraldatud püstkriipsu (pipe) märgiga "|".
Sinu ülesanne on andmed üksteisest eraldada ning uuesti trükkida paremas vormingus.
Näidissisend ühel real:
2016-02-09|Deadpool|Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life.|7.24
Parem vormindus:
Deadpool Release date: 09/02/2016 Description: Based upon Marvel Comics’ most unconventional anti-hero, DEADPOOL tells the origin story of former Special Forces operative turned mercenary Wade Wilson, who after being subjected to a rogue experiment that leaves him with accelerated healing powers, adopts the alter ego Deadpool. Armed with his new abilities and a dark, twisted sense of humor, Deadpool hunts down the man who nearly destroyed his life. Average rating: 7.24
Filmid tuleb sisse lugeda failist movies.txt rea haaval.
Mall
javadoc'i (meetodite ja vajadusel ka muutujate kirjelduse) peate ise kirjutama.
<source lang="java"> public class EX05 {
public static int convert(String inputFilename, String outputFilename) {
}
public static String getNicelyFormattedMove(String moveLine) { return null; }
} </source>