Skip to content

Instantly share code, notes, and snippets.

View RobertronS's full-sized avatar
😀
Looking to code

RobertronS

😀
Looking to code
View GitHub Profile
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;
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);
}
package org.storage;
import org.resources.*;
import java.time.LocalDate;
import java.util.List;
import java.util.Optional;
/**
* @author Developed by Vladimir Scherba
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{