Skip to content

Instantly share code, notes, and snippets.

import java.util.*;
public class shifting
{
public shifting()
{
Scanner sc = new Scanner(System.in);
int[] sample = {1,2,3,4,5};
System.out.println("Array: " + Arrays.toString(sample));
System.out.println("Shift by how many?");
int shiftInt = sc.nextInt();
import java.util.*;
public class FunPrimes
{
public FunPrimes()
{
LinkedList list = new LinkedList();
Scanner sc = new Scanner(System.in);
boolean playing = true;
import java.util.*;
public class password
{
public password()
{
Scanner sc = new Scanner(System.in);
int[] arr = new int[140];
//int alpha=0;
int w = 10;
int h = 400;
boolean sorting = false;
void setup(){
size(1400,400);
setArr();
frameRate(10);
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseListener;
public class freeResponse1
{
public freeResponse1()
{
LinkedList list = new LinkedList();
list.insert(list,1);
list.insert(list,6);
list.insert(list,2);
import java.util.*;
public class freeResponse2
{
public freeResponse2()
{
String[] artists = {"Ariana Grande", "Ariana Grande", "Ariana Grande","Halsey","Halsey","Post Malone","Post Malone","Post Malone","Ariana Grande","Ariana Grande","Ariana Grande","Ariana Grande","Lady Gaga","Lady Gaga","Lady Gaga","Lady Gaga","Jonas Brothers","Jonas Brothers","Jonas Brothers","Jonas Brothers","Jonas Brothers","Jonas Brothers","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Lil Nas X","Billie Eilish","Billie Eilish","Billie Eilish","Billie Eilish","Billie Eilish","Billie Eilish","Shawn Mendes","Lizzo","Lizzo","Lizzo","Lizzo","Lizzo","Lizzo","Travis Scott","Selena Gomez","Selena Gomez","Post Malone","Post Malone","Post Malone","Post Malone","The Weeknd","Mariah Carey","Mariah Carey"};
LinkedList artistsList = new LinkedList();
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
float theta;
void setup() {
size(750, 750);
//strokeWeight(1);
//noStroke();
//fill(0,45);
}
import java.net.*;
import java.io.*;
import java.util.StringTokenizer;
import java.util.Scanner;
import java.util.*;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;