This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<style> | |
div{ margin-top:10px; font-size: .9em;} | |
input[type='number']{width:25px;} | |
#info{} | |
#clickSetting{} | |
.container{position:inherit;float:right; left:850px;padding:10px; width:500px; height:600px; } | |
</style> |
This file contains hidden or 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
public static void main() | |
{ | |
String[] names_F = { "Julia ", "Maddy ", "Rachel ", "Kristi ", "Emily ", "Sophie "}; | |
String[] names_M = { "Graham ", "Joey ", "Matt ", "Sammy ", "Aaron "}; | |
String[] pnouns = { "I ", "you ", "me ", "him ", "her ", "it "/*5*/,"my ","you're ","anyone ", "one "/*9*/,"It's "}; | |
String[] words = { | |
"information ", "future ", "anyone ", "Dear ", "for ", "life ", "love ", "will ", "encrypt ", "advantage ", | |
"power ", "struggle ", "hate ", "never ", "again ", "find ", "miss ", "this ", "that ", "really ", "would ", "because ", | |
"know ", "honestly ", "afraid ", "consider ", "even ", "in ", "the ", "near ", "was ", "want ", "rest ","am ","writing ", | |
"of ","feelings ","don't ", "and ","didn't ","stuff ", "only ","to ","take ","do ","have ","tomorrow ", "wrists ", "plays ", |
This file contains hidden or 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
public String starOut(String str) { | |
String str1 = ""; | |
int count = 0; | |
int[] x = new int[str.length()*2]; | |
boolean v = true; | |
if(str.equals("*")) | |
{ | |
return ""; | |
} | |
for(int i = 0;i<str.length();i++) |
This file contains hidden or 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 Encryption | |
{ | |
private ArrayList<String> letters = new ArrayList<String>(); | |
private int[] pos = new int[letters.size()]; | |
private String alph = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
private String newest = ""; | |
public int getNum(String x) | |
{ | |
return alph.indexOf(x); |
This file contains hidden or 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.awt.*; | |
import java.util.*; | |
import javax.swing.*; | |
import java.awt.image.*; | |
import java.awt.event.*; | |
public class intersections extends JFrame | |
{ | |
private GraphicRectangle right; | |
private GraphicRectangle left; | |
private GraphicRectangle top; |
This file contains hidden or 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
public int[] front11(int[] a, int[] b) { | |
int[] tempS = new int[2]; | |
int[] tempA= new int[1]; | |
if(a.length<1 || b.length<1){ | |
if(a.length<1){ | |
tempA[0]=b[0];} | |
if(b.length<1){ | |
tempA[0]= a[0];} | |
} |
This file contains hidden or 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
public int[] findNegatives(int[] x) | |
{ | |
int[] array = new int[100]; | |
int count =0; | |
for (int index =0; index<x.length; index++) | |
{ | |
if( (x[index]*-1) > 0) | |
{ | |
array[count]=index; |
This file contains hidden or 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
public static void main2() | |
{ | |
int counter = 0; | |
boolean playGame = (true); | |
char lastBoard[][]=new char[3][3]; | |
System.out.println("Please enter a number: "); | |
Scanner sc = new Scanner(System.in); | |
int choice = sc.nextInt(); | |
int x = choice%3; | |
int y = choice/3; |
This file contains hidden or 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
// i know that i named the class incorrectly | |
import java.util.* ; | |
import java.lang.Character; | |
public class RockPaperSiccors | |
{ | |
public static void main(String[] args) | |
{ | |
int n = 0; |