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 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; | |
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 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 { |
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
//---------------------------------------------------------------------------- | |
// 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. |
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
//--------------------------------------------------------------------------- | |
// 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 |
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
public class AddUsers { | |
private String userName; | |
public AddUsers(String userName) { | |
this.userName = userName; | |
} | |
public AddUsers() { | |
userName = ""; |
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
----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> |
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.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; |
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.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); |
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.*; | |
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"); |
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.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 { | |
NewerOlder