Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sem2/test2.1/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions sem2/test2.1/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions sem2/test2.1/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions sem2/test2.1/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions sem2/test2.1/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions sem2/test2.1/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins {
id 'java'
}

group 'test2.1'
version '1.0-SNAPSHOT'

sourceCompatibility = 11

repositories {
mavenCentral()
}

dependencies {
testCompile('org.junit.jupiter:junit-jupiter-api:5.3.2')
testCompile('org.junit.jupiter:junit-jupiter-engine:5.3.2')
}

test {
useJUnitPlatform()
}
Binary file added sem2/test2.1/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions sem2/test2.1/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sun May 05 18:32:26 GMT+03:00 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
172 changes: 172 additions & 0 deletions sem2/test2.1/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions sem2/test2.1/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions sem2/test2.1/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = 'myplugin'

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.AntonChernikov.g144;

import java.util.Arrays;
import java.util.LinkedList;

/**
* Class describing work with sorted set
* */
public class Application {

private SortedSet set;

public Application() {
set = new SortedSet();
}

/**
* Method splitting lines into word lists and adding lists to the set
* */
public void addWords(String[] object) {
for (String current : object) {
String[] words = current.split(" ");
set.add(new LinkedList(Arrays.asList(words)));
}
}

/**
* Method printing set
* */
public String print() {
return set.print();
}

/**
* Method checking set for emptiness
* */
public boolean isEmpty() {
return set.isEmpty();
}
}
Loading