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
import org.resources.JournalArticle; | |
import org.resources.JournalArticleFactory; | |
import org.resources.JournalIssue; | |
import org.resources.JournalIssueFactory; | |
import java.time.LocalDate; | |
import java.util.ArrayList; | |
class CodeScratch{ |
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 org.storage; | |
import org.resources.*; | |
import java.time.LocalDate; | |
import java.util.List; | |
import java.util.Optional; | |
/** | |
* @author Developed by Vladimir Scherba |
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
import java.util.*; | |
public class QuickSort <T extends Comparable<T>>{ | |
public void swap(ArrayList<T> array, T value1, T value2){ | |
T temp; | |
temp = value1; | |
array.set(array.indexOf(value1), value2); | |
array.set(array.indexOf(value2), temp); | |
} |
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
import java.util.*; | |
public class QuickSort <T extends Comparable<T>>{ | |
public void swap(ArrayList<T> array, T value1, T value2){ | |
Collections.swap(array, array.indexOf(value1),array.indexOf(value2)); | |
} | |
public void quickSort(ArrayList<T> arrayList){ | |
int low = 0; |