This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task17.task1721; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
/* | |
Транзакционность javarush | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task17.task1711; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Locale; | |
/* | |
CRUD 2 javarush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1801; | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.InputStreamReader; | |
/* | |
Максимальный байт javarush | |
Ввести с консоли имя файла. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1805; | |
import java.io.BufferedReader; | |
import java.io.FileInputStream; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.LinkedHashSet; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1807; | |
/* | |
Подсчет запятых javarush | |
С консоли считать имя файла. | |
Посчитать в файле количество символов ‘,‘, количество вывести на консоль. | |
Закрыть потоки. | |
Подсказка: | |
нужно сравнивать с ascii-кодом символа ‘,‘. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1808; | |
/* | |
Разделение файла javarush | |
Считать с консоли три имени файла: файл1, файл2, файл3. | |
Разделить файл1 по следующему критерию: | |
Первую половину байт записать в файл2, вторую половину байт записать в файл3. | |
Если в файл1 количество байт нечетное, то файл2 должен содержать большую часть. | |
Закрыть потоки. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1810; | |
/* | |
DownloadException javarush | |
1 Считывать с консоли имена файлов. | |
2 Если файл меньше 1000 байт, то: | |
2.1 Закрыть потоки работы с файлами. | |
2.2 Выбросить исключение DownloadException. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1814; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
/* | |
UnsupportedFileName javarush | |
Измени класс TxtInputStream так, чтобы он работал только с txt-файлами (*.txt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1816; | |
/* | |
Английские буквы javarush | |
*/ | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
public class Solution { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.task.task18.task1817; | |
/* | |
Пробелы javarush | |
В метод main первым параметром приходит имя файла. | |
Вывести на экран соотношение количества пробелов к количеству всех символов. Например, 10.45. | |
1. Посчитать количество всех символов. | |
2. Посчитать количество пробелов. | |
3. Вывести на экран п2/п1*100, округлив до 2 знаков после запятой. |
OlderNewer