/
anton.buldygin
/
Graph-Algorithms-Visualizer
Обзор
Документация
Войти
/
anton.buldygin
/
Graph-Algorithms-Visualizer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Topics/Nested classes/Create class/task.html
14 строк
797 B
antonBuldygin
Initial commit
25 янв 2023, 13:49
25 янв 2023, 13:49
cd4ee6e
Код
Авторство
О чём код?
<h2>Create class</h2> <p>There is an outer class <code class="java">StringOperations</code>. Your task is to create a static nested class <code class="java">EngString</code> inside of <code class="java">StringOperations</code>.</p> <p>The class <code class="java">EngString</code> should have: </p> <ul> <li>two fields: <code class="java">boolean english</code> and <code class="java">String string</code></li> <li>a constructor that accepts these fields</li> <li>getters for both fields: <code class="java">isEnglish()</code> and <code class="java">getString()</code></li> </ul> <p> </p> <p>Please, don't make the class and the methods <code class="java">private</code>.</p><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 5 seconds</font><br><br>