Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task7 #75

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
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
6 changes: 6 additions & 0 deletions .idea/misc.xml

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

11 changes: 11 additions & 0 deletions .idea/modules.xml

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

124 changes: 124 additions & 0 deletions .idea/uiDesigner.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

11 changes: 11 additions & 0 deletions _ATARASOV/_ATARASOV.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не обязательно коамтить файлы идеи.
Тем более - файлы в моей папке!

<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/1" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
4 changes: 0 additions & 4 deletions telukhin/7/telukhin/MainTask7.java

This file was deleted.

64 changes: 64 additions & 0 deletions telukhin/7/telukhin/task1/MainTask7.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package telukhin.task1;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.TreeSet;

public class MainTask7 {


public static void main(String[] args) {
ArrayList<String> s = new ArrayList<>();
ArrayList<Integer> i = new ArrayList<>();
ArrayList<Long> l = new ArrayList<>();
ArrayList<PersonForAdd> p = new ArrayList<>();

ArrayList<Double> alDouble = new ArrayList<>();
LinkedList<Double> llDouble = new LinkedList<>();
HashSet<Double> hsDouble = new HashSet<>();
TreeSet<Double> tsDouble = new TreeSet<>();


/*Add*/
System.out.println("®Add 100 000 elements®********************");
Utils.addString(s,"100000");
Utils.addInt(i, 100000);
Utils.addLong(l, 100000L);
Utils.addPerrson(p, new PersonForAdd("Name", "Surname", 100000));
System.out.println();

/*First Last Search*/
System.out.println("®First last unExist Search®********************");
Utils.findFirstLastUnExistString(s);
System.out.println();

Utils.findFirstLastUnExistInt(i);
System.out.println();

Utils.findFirstLastUnExistLong(l);
System.out.println();

Utils.findFirstLastUnExistPerson(p);
System.out.println();


/*Add in different collections*/
System.out.println("®Add First last Search in different collections®********************");
Utils.addInArrayList(alDouble);
System.out.println();

Utils.addInLinkedList(llDouble);
System.out.println();

Utils.addInHashSet(hsDouble);
System.out.println();

Utils.addInTreeSet(tsDouble);
System.out.println();



}
}

13 changes: 13 additions & 0 deletions telukhin/7/telukhin/task1/PersonForAdd.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package telukhin.task1;

public class PersonForAdd {
private String name;
private String surname;
private int age;

public PersonForAdd(String name, String surname, int age) {
this.name = name;
this.surname = surname;
this.age = age;
}
}
Loading