Skip to content

Instantly share code, notes, and snippets.

View 76342ck's full-sized avatar

PEACH 76342ck

View GitHub Profile
@76342ck
76342ck / CanvasFragment.java
Created March 3, 2018 02:54
PaletteFragment
package edu.temple.paletteactivity3;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@76342ck
76342ck / CanvasActivity.java
Created March 2, 2018 22:27
PaletteAcitvity
package edu.temple.paletteactivity2;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.RelativeLayout;
public class CanvasActivity extends AppCompatActivity {
//----------------------------------------------------------------------------
// ArrayUnsortedList.java by Dale/Joyce/Weems Chapter 6
//
// Implements the ListInterface using an array.
//
// Null elements are not permitted on a list.
//
// Two constructors are provided: one that creates a list of a default
// original capacity, and one that allows the calling program to specify the
// original capacity.
//---------------------------------------------------------------------------
// ArrayUnbndQueue.java by Dale/Joyce/Weems Chapter 5
//
// Implements UnboundedQueueInterface with an array to hold queue elements.
//
// Two constructors are provided; one that creates a queue of a default
// original capacity and one that allows the calling program to specify the
// original capacity.
//
// If an enqueue is attempted when there is no room available in the array, a
@76342ck
76342ck / AddUsers.java
Created November 18, 2015 12:19
CHORE SCORE
public class AddUsers {
private String userName;
public AddUsers(String userName) {
this.userName = userName;
}
public AddUsers() {
userName = "";
@76342ck
76342ck / OUTPUT from Driver class
Last active June 4, 2019 09:15
Week6 Collection
----jGRASP exec: java SongDriver
NumSongs = 7 / PlayList song limit = 12
songList[0] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[1] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[2] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[3] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[4] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[5] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
songList[6] = < Title: If You, Artist: Big Bang, Album: MADE, Track Length: 264000>
import java.util.Scanner;
import java.util.ArrayList;
import java.io.*;
import java.text.*;
public class MyList {
public static ArrayList<ToDoItem> toDoItems = new ArrayList<>();
public static Scanner k = new Scanner(System.in);
private static String description;
import java.text.*;
import java.util.Date;
import java.lang.NullPointerException;
public class ToDoItem {
private String description;
private Date dueDate;
private int priority;
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
import java.util.*;
import java.text.*;
public class wy2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter Date: ");
String ind = sc.nextLine();
DateFormat df = new SimpleDateFormat("mm/dd/yyyy");
import java.util.ArrayList;
import java.util.Scanner;
import java.util.*;
import java.text.*;
import java.util.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class ToDoItem {