-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: master
Are you sure you want to change the base?
Task7 #75
Changes from all commits
215c8e8
dcbee4e
6b431b7
bf5b144
020e7d7
b37f6b1
bd05bb7
23243a7
c748996
fd583d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> |
This file was deleted.
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(); | ||
|
||
|
||
|
||
} | ||
} | ||
|
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; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не обязательно коамтить файлы идеи.
Тем более - файлы в моей папке!