Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Browse P

Alphabetical listing with fast deep pagination.
81033 items • Page 1614 / 1621

All 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
public class Student{ //constant public static int SLOW = 1; public static int M
public class Student{ //constant public static int SLOW = 1; public static int MEDIOCRE = 2; public static int BRIGHT = 3; public static int studentCount = 0; private String name;…
public class Student{ //constant public static int SLOW = 1; public static int M
public class Student{ //constant public static int SLOW = 1; public static int MEDIOCRE = 2; public static int BRIGHT = 3; public static int studentCount = 0; private String name;…
public class SubsetCopyArray { // TODO - write your code below this comment. //
public class SubsetCopyArray { // TODO - write your code below this comment. // You will need to write a method that copies only // a portion of the source array, given starting /…
public class SuperHero { // instance variables go below here private static int
public class SuperHero { // instance variables go below here private static int numberOfHeroes; private String secretIdentity, heroName; private int numberOfLifeChances, numberOfP…
public class SuperHero { protected String name; protected int strength; protecte
public class SuperHero {        protected String name;        protected int strength;        protected String power;        public SuperHero(String name, int strength, String powe…
public class SupportSystem { private InputReader reader; private Responder respo
public class SupportSystem { private InputReader reader; private Responder responder;    /** * Creates a technical support system. */ public SupportSystem() { reader = new InputRe…
public class SwapMultidimensional { // TODO - write your code below this comment
public class SwapMultidimensional { // TODO - write your code below this comment. // You must write TWO methods: // // 1.) A method named "swapRows" that swaps the // contents of …
public class SwitchErrorsGui { public static void main(String[] args) { String i
public class SwitchErrorsGui { public static void main(String[] args) { String input: JOptionPane.showMessageDialog(null,"Key :1=blue, 2=red, 3=green"); input = JOptionPane.showIn…
public class TaxComputer { private static double basicRate = 4.0; private static
public class TaxComputer { private static double basicRate = 4.0; private static double luxuryRate = 10.0; 1. Create a class that will bundle together several static methods for t…
public class TempDriver { public static void main(String[] args) { //0.0 C Tempr
public class TempDriver { public static void main(String[] args) { //0.0 C Tempreture ob1 = new Tempreture(); Tempreture ob2 = new Tempreture(32,'F'); Tempreture ob3 = new Tempret…
public class Temperature9250 { //instance variables private double degrees; priv
public class Temperature9250 { //instance variables private double degrees; private char units;//'C' for Celsius, 'F' for Fahrenheit //methods //Constructor to specify both temper…
public class TemperatureTest { public static void main( String args[] ) { Scanne
public class TemperatureTest {    public static void main( String args[] )    {       Scanner input = new Scanner(System.in );             int choice; // the user's choice inthe m…
public class Test { private int x; private int y; private int z; public Test(){
public class Test {    private int x;    private int y;    private int z;    public Test(){           }    public Test(int x, int y, int z){        this.x = x;        this.y = y; …
public class Test { private int x; private int y; private int z; public Test(){
public class Test {    private int x;    private int y;    private int z;    public Test(){           }    public Test(int x, int y, int z){        this.x = x;        this.y = y; …
public class Test { public static void main (String [] args) { int[] values = ne
public class Test { public static void main (String [] args) { int[] values = new int[5]; for (int i = 0; i < 5; i++) values[i] = i; for (int i = 1; i < 5; i++) values[i] = …
public class Test { public static void main(String[ ] args) { B b = new B(); b.m
public class Test { public static void main(String[ ] args) { B b = new B(); b.m(5); System.out.println("i is " + b.i);    } } class A { int i; public void m(int i) { this.i = i; …
public class Test { public static void main(String[] args) { new Circle9(); } }
public class Test { public static void main(String[] args) { new Circle9(); } } public abstract class GeometricObject { protected GeometricObject() { System.out.print("A"); } prot…
public class Test { public void foo() { assert false ; /* Line 5 */ assert false
public class Test { public void foo() { assert false; /* Line 5 */ assert false; /* Line 6 */ } public void bar() { while(true) { assert false; /* Line 12 */ } assert false; /* Li…
public class Test { public void foo() { assert false ; /* Line 5 */ assert false
public class Test { public void foo() { assert false; /* Line 5 */ assert false; /* Line 6 */ } public void bar() { while(true) { assert false; /* Line 12 */ } assert false; /* Li…
public class Test {public static void main (String [] args) {Dog fei = new Dor (
public class Test {public static void main (String [] args) {Dog fei = new Dor ('gray", 10.0, 'M'); Bird Mimi = nwird ("rd", 1.0, 'F'}; fei middot walk (5); mimi. sing();}} class …
public class Test2 { public static int x; public static int foo( int y) { return
public class Test2 { public static int x; public static int foo(int y) { return y * 2; } public static void main(String [] args) { int z = 5; assert z > 0; /* Line 11 */ assert…
public class Test2 { public static int x; public static int foo( int y) { return
public class Test2 { public static int x; public static int foo(int y) { return y * 2; } public static void main(String [] args) { int z = 5; assert z > 0; /* Line 11 */ assert…
public class Test63{ public staticvoid main(String[] args) { int[] x1 = { 2, 8,
public class Test63{    public staticvoid main(String[] args) {     int[] x1 = { 2, 8, -34, 16, 4, 91, -6, 21};      int[] x2 = { -34, -6, 2, 4, 8, 16, 21,91};      // first call …
public class TestCourse{ public static void main(String[] args){ Course course1
public class TestCourse{ public static void main(String[] args){ Course course1 = new Course("Data structure") ; Course course2 = new Course("Database systems"); course1.addStuden…
public class TestLL { public static void main(String[] args) { // create an empt
public class TestLL { public static void main(String[] args) { // create an empty linked list LList list = new LList(); System.out.print("empty list : "); System.out.println(list)…
public class TestShapes { public static void main( String [] args) { Circle circ
public class TestShapes {    public static void main(String[] args) {       Circle circle1 = new Circle(new Point(0.0, 0.0), 1.0);       Circle circle2 = new Circle(new Point(0.0,…
public class TestStack { public static void test(Stack s) { Stack
public class TestStack { public static void test(Stack<String> s) { Stack<String> tmp; tmp = new LinkedStack<String>(); while (! s.isEmpty()) { tmp.push(s.pop())…
public class Test{ public static void main(String[] args){ m(new GraduateStudent
public class Test{       public static void main(String[] args){                   m(new GraduateStudent());                   m(new Student());                   m(new Person());…
public class ThreadDemo { static Thread laurel, hardy; public static void main(S
public class ThreadDemo { static Thread laurel, hardy; public static void main(String[] args) { laurel = new Thread() { public void run() { System.out.println("A"); try { hardy.sl…
public class ThreadDemo { static Thread laurel, hardy; public static void main(S
public class ThreadDemo { static Thread laurel, hardy; public static void main(String[] args) { laurel = new Thread() { public void run() { System.out.println("A"); try { hardy.sl…
public class ThreadDemo { static Thread laurel, hardy; public static void main(S
public class ThreadDemo { static Thread laurel, hardy; public static void main(String[] args) { laurel = new Thread() { public void run() { System.out.println("A"); try { hardy.sl…
public class TicTacToeV1 implements ActionListener { /*Instance Variables*/ priv
public class TicTacToeV1 implements ActionListener { /*Instance Variables*/ private JFrame window = new JFrame("Tic-Tac-Toe"); private JButton button1 = new JButton("x"); private …
public class Tigers { public static void main( String args[] ) { try { petfood1(
public class Tigers {     public static void main( String args[] )          {          try { petfood1(); }          catch ( CatException e ) {            System.err.println( e.get…
public class Tigers { public static void main( String args[] ) { try { petfood1(
public class Tigers {     public static void main( String args[] )          {          try { petfood1(); }          catch ( CatException e ) {            System.err.println( e.get…
public class Tile { private TileType tileType; private Direction orientation; pr
public class Tile { private TileType tileType; private Direction orientation; private int tileID; private int position; /** * Constructor for a tile. * * @param tileID The tile ID…
public class Time { /* Three instance variables: 1) \'hour\': value of a hours a
public class Time { /* Three instance variables: 1) 'hour': value of a hours as integer 2) 'min': value of a hours as integer 3) 'sec' : value of a seconds as integer */ /* A thre…
public class Time { /* Three instance variables: 1) \'hour\': value of a hours a
public class Time { /* Three instance variables: 1) 'hour': value of a hours as integer 2) 'min': value of a hours as integer 3) 'sec' : value of a seconds as integer */ /* A thre…
public class Time { //hours in conventional time private int hours; //minutes in
public class Time { //hours in conventional time private int hours; //minutes in conventional time private int minutes; //true if afternoon time, false if morning time private boo…
public class TreeNode { /******** Instance Data *************/ int item; //Data
public class TreeNode {    /******** Instance Data *************/       int item; //Data field    TreeNode leftChild; //Left Pointer    TreeNode rightChild; //Right Pointer       …
public class TreeNode { private T element; // data field private TreeNode
public class TreeNode<T> {       private T element;                           // data field    private TreeNode<T> left;                   // reference to left child n…
public class Turtle { private double x, y; private double angle; public Turtle(d
public class Turtle {     private double x, y;          private double angle;         public Turtle(double x0, double y0, double a0) {         x = x0;         y = y0;         angl…
public class Turtle { private double x, y; private double angle; public Turtle(d
public class Turtle { private double x, y; private double angle; public Turtle(double x0, double y0, double a0) { x = x0; y = y0; angle = a0; } public void turnLeft(double delta) …
public class Undergraduate extends Student { private int level; //1 for freshman
public class Undergraduate extends Student {     private int level; //1 for freshman, 2 for sophomore,                        //3 for junior, or 4 for senior.     public Undergrad…
public class Uniquesum Normally, this method will compute the sum of the three p
public class Uniquesum Normally, this method will compute the sum of the three parameters. BUT, if one of the parameters has the same value as another parameter, then neither of t…
public class UpperCaseString { //1 protected String content; // 2 public UpperCa
public class UpperCaseString { //1 protected String content; // 2 public UpperCaseString(String s) { // 3 content = s.toUpperCase(); // 4 } // 5 public String toString() { // 6 re…
public class Utilities{ /** * step 3.1 * * Computes the average of any number of
public class Utilities{ /** * step 3.1 * * Computes the average of any number of ratings * * @param ratings A list of integer ratings in the range of 1-5 inclusive * @return The a…
public class WhatzitRevisited { public static void main(String[] args) { int i =
public class WhatzitRevisited { public static void main(String[] args) { inti =50; intj =0; while(i >0) { intk = whatzitTheFirst(i); j = j + k; i = i /10; System.out.println("M…
public class WordPath { private static class Node { String word; Node previous;
public class WordPath { private static class Node { String word; Node previous;    Node (String word) { this.word = word; } }    static GUI ui = new GUI();    public static void m…
public class WordTreeNode *Highest allowable character index is NUMCHILDREN-1 (a
public class WordTreeNode *Highest allowable character index is NUMCHILDREN-1 (assuming one-byte ASCII i.e. "extended ASCII") NUMCHILDREN is constant (static and final) To access …
public class XClass { private int u; private double w; public XClass() { } publi
public class XClass { private int u; private double w; public XClass() { } public XClass(int a, double b) { } public void func() { } public void print() { } } XClass x = new XClas…