Browse P
Alphabetical listing with fast deep pagination.
81033 items • Page 1610 / 1621
public class Employee{ private String dob; // mm/dd/yyyy private String name; pr
public class Employee{ private String dob; // mm/dd/yyyy private String name; private String boss; // null if noboss? or empty? //----------------------------------…
public class Exam { public static void main(String[] args) { System.out.println(
public class Exam { public static void main(String[] args) { System.out.println(args.length); //1. System.out.printf("*%-6s%6s* ",200,3.0); //2. //S…
public class ExampleTester { public static void main(String args[]) { Example my
public class ExampleTester { public static void main(String args[]) { Example myExample = new Example1(); myExample.printer(5); //myExample.anotherPrinter(3); myExample = new Exam…
public class ExceptionWarrior { /** * {@code public void runCourse() throws Rope
public class ExceptionWarrior { /** * {@code public void runCourse() throws RopeClimbException, TimeException}. // RopeClimbException is checked; TimeException is unchecked.<…
public class Exercise3_2 { public static void main(String[] args) { Course cours
public class Exercise3_2 { public static void main(String[] args) { Course course1 = new Course("DataStructures"); Course course2 = new Course("DatabaseSystems"); c…
public class ExternalSort { static Scanner openIn (File file) { try { return new
public class ExternalSort { static Scanner openIn (File file) { try { return new Scanner(file); } catch (Exception e) { System.out.println(e); } return null; } static PrintWrit…
public class F { private String first; protected String name; public F( ) { } pu
public class F { private String first; protected String name; public F( ) { } public F(String f, String n) { first = f; name = n; } public String getFirst( ) { return first; } pub…
public class Fan { public static void main(String args[]) { JFrame frame = new J
public class Fan { public static void main(String args[]) { JFrame frame = new JFrame("Tick Slider"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JSliderjSlid…
public class Fan { public static void main(String args[]) { JFrame frame = new J
public class Fan { public static void main(String args[]) { JFrame frame = new JFrame("Tick Slider"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JSliderjSlid…
public class Fibonacci { public void Fibonator() { int maxFibNum = 100; for (int
public class Fibonacci { public void Fibonator() { int maxFibNum = 100; for (int loop = 0; loop <= maxFibNum; loop++) //call fibonacci from java save file System.out.println("f…
public class Final extends JFrame { private double total ; private double total2
public class Final extends JFrame { private double total ; private double total2; private double total3; private final int sides = 3; private int value; private …
public class FinalExamSpring2013 { // DO NOT CHANGE THE MAIN METHOD public stati
public class FinalExamSpring2013 { // DO NOT CHANGE THE MAIN METHOD public static void main(String[] args) { MyLinkedList<Integer> list1 = new MyLinkedList<Integer>();…
public class FiveRow{ public static void main (String[] args) throws Exception {
public class FiveRow{ public static void main (String[] args) throws Exception { BufferedReader keyIn = new BufferedReader(newInputStreamReader(System.in)); …
public class FoodOrder { private int numChBurgers; //number of Cheese Burgers or
public class FoodOrder { private int numChBurgers; //number of Cheese Burgers ordered private int numPepsis; //number of Pepsis ordered private boolean hasNotPaid; // true if the …
public class Fraction { // Instance variables private int numerator; // Numerato
public class Fraction { // Instance variables private int numerator; // Numerator of fraction private int denominator; // Denominator of fraction // Constructors public Fraction(i…
public class Fraction { public final int numerator; public final int denominator
public class Fraction { public final int numerator; public final int denominator; public Fraction(int num, int denom){ try{ numerator = num; if (denom == 0){ throw new Division…
public class Fragment { /** * Creates a new Fragment based upon a String represe
public class Fragment { /** * Creates a new Fragment based upon a String representing a sequence of nucleotides, * containing only the uppercase characters G, C, A and T. * …
public class FreeSpaceFrame extends JFrame f public FreeSpaceFrame ) super (\"Di
public class FreeSpaceFrame extends JFrame f public FreeSpaceFrame ) super ("Disk Free Space") setLookAndFeel); setsize(500, 120) setDefaultCloseoperation (JFrame.EXIT ON_CLOSE); …
public class FreqAndRankContainer { ArrayList a = new ArrayList(
public class FreqAndRankContainer { ArrayList<String> a = new ArrayList<String>(); String[] items; int size; // constructor public FreqAndRankCon…
public class Fruit { private double pricePerPound; private String code; public F
public class Fruit { private double pricePerPound; private String code; public Fruit(double pricePerPound, String code) { this.pricePerPound = pricePerPound; …
public class Fruit { private double pricePerPound; private String code; public F
public class Fruit { private double pricePerPound; private String code; public Fruit(double pricePerPound, String code) { this.pricePerPound = pricePerPound; …
public class FunFun Fun public static void main String args) Fun Fun una app new
public class FunFun Fun public static void main String args) Fun Fun una app new Fun Fun Fun System. out rintln (app. fastCount Down (3 app gcd (1440, 408, 0); System. out. printl…
public class GCD { //main method public static void main(String[] args) { //call
public class GCD { //main method public static void main(String[] args) { //calling the GCD method to compute GCD value try { System.out.println("gcd(24,16) is: "+GCD(24,16)); Sys…
public class Game{ public void players() { System.out.println(“1 or more”); } }
public class Game{ public void players() { System.out.println(“1 or more”); } } public class Chess extends Game { public void boardSize() { System.out.println(“8 by 8”); } public …
public class GeoLocation {latitude private double latitude; private double longi
public class GeoLocation {latitude private double latitude; private double longitude; // Construct a GeoLocation given the latitude and longitude. public GeoLocation(double latitu…
public class GradeActivity { // declaring the variable scoreValue private double
public class GradeActivity { // declaring the variable scoreValue private double scoreValue; //setter to set a value for the scoreValue public void setScore(double s1) { //setting…
public class GradingProgram { public static void main(String[] args) { System.ou
public class GradingProgram { public static void main(String[] args) { System.out.println("Enter scores for all students"); System.out.println("Enter a negative number to end the …
public class Greeter { public Greeter(String aName) { name = aName; } public Str
public class Greeter { public Greeter(String aName) { name = aName; } public String sayHello() { return "Hello, " + name + "!"; } private String name; } public class GreeterTester…
public class GuessingGame { public static void main(String[] args) { TextIO.putl
public class GuessingGame { public static void main(String[] args) { TextIO.putln("Let's play a game. I'll pick a number between"); TextIO.putln("1 and 100, and you try to guess i…
public class GuessingGame { public static void main(String[] args) { TextIO.putl
public class GuessingGame { public static void main(String[] args) { TextIO.putln("Let's play a game. I'll pick a number between"); TextIO.putln("1 and 100, and you try to guess i…
public class HeadList ( Node head: / Points to the first node ot the list ) publ
public class HeadList ( Node head: / Points to the first node ot the list ) public class HeadTailList ( Node head; // Points to the first node of the list Node tail; // Points to …
public class Hero { //data members private String name; private int nemesis; pri
public class Hero { //data members private String name; private int nemesis; private double travelTime; private Hero next; private Hero prev; /** …
public class Hero { //data members private String name; private int nemesis; pri
public class Hero { //data members private String name; private int nemesis; private double travelTime; private Hero next; private Hero prev; /** …
public class HexadecimalDemo { public static void main(String[] args) { Hexadeci
public class HexadecimalDemo { public static void main(String[] args) { Hexadecimal hex1 = new Hexadecimal ("123h"); Hexadecimal hex2 = new Hexadecimal ("123h"); Hexadecimal hex4,…
public class Hexagon extends GeometricObject implements Comparable { private dou
public class Hexagon extends GeometricObject implements Comparable { private double side; /** Construct a Hexagon with the specified side */ public Hexagon(double side) { // Imple…
public class HexagonalPrism extends Hexagon { private double height; public Hexa
public class HexagonalPrism extends Hexagon { private double height; public HexagonalPrism (double height) { this(height, 1.0, "white", true); } public H…
public class Homework1 { /** * minValue returns the minimum value in an array of
public class Homework1 { /** * minValue returns the minimum value in an array of doubles. You can assume * the array is nonempty and has no duplicates. Your solution must…
public class Integral { // Variables are defined double a , b , c , FirstValue ,
public class Integral { // Variables are defined double a,b,c,FirstValue,SecondValue,ThirdValue,X, HigherValue,LowerValue,ActualValue,LowValue,HighValue, Sum; String d; boolean…
public class Inventory { private Item[] itemList = new Item[0]; private int gold
public class Inventory { private Item[] itemList = new Item[0]; private int goldCoins=0; double maximumCarryingCapacity = 0; int maximumNumberOfItems = 0; String name…
public class InventoryManager { /** * to display total inventory * * @param item
public class InventoryManager { /** * to display total inventory * * @param items */ public static void printInventory(Item items[]) { System.out.println("***Total Inventory***");…
public class JavaAccount { private String customerName; private long AccountNumb
public class JavaAccount { private String customerName; private long AccountNumber; private double balance; private double interestRate; JavaAccount(String customerName,long Accou…
public class JavaAccount { private String customerName; private long AccountNumb
public class JavaAccount { private String customerName; private long AccountNumber; private double balance; private double interestRate; JavaAccount(String customerName,long Accou…
public class Javaprogram25 { public static void main(String[] args) { int w = 1;
public class Javaprogram25 { public static void main(String[] args) { int w = 1; while(w<=5) { System.out.println("Nazmul"); w=w+1; } } } public class Javaprogram26 { public…
public class Javaprogram38 { public static void main(String[] args) { Scanner kb
public class Javaprogram38 { public static void main(String[] args) { Scanner kb = new Scanner(System.in); int n; System.out.println("Enter number of elements in a list: "); n = k…
public class KdTree { private static class Node { // TODO } private Node root; /
public class KdTree { private static class Node { // TODO } private Node root; /* construct an empty set of points */ public KdTree() { // TODO -- maybe nothing to do here... in w…
public class LLInArrayNode implements Comparable { private int NU
public class LLInArrayNode implements Comparable<LLInArrayNode> { private int NUL = -1; private String value; private int next; public LLInArrayNode() { } public LLInArrayNo…
public class LList implements Comparable{ protected Node head; protected
public class LList implements Comparable<LList>{ protected Node head; protected Node tail; protected int size; /* constructors */ public LList(){ head = tail = null; size = …
public class Lab10 { public static void main(String[] args) { int total = 0; dou
public class Lab10 { public static void main(String[] args) { int total = 0; double average = 0.0; int row1Total = 0; int column4Total = 0; int maxInRow0 = 0; int minI…
public class Lab7 { // Y O U M U S T M O D I F Y M A I N public static void main
public class Lab7 { // Y O U M U S T M O D I F Y M A I N public static void main( String args[] ) { // WRITE AN IF STATEMENT THAT VERIFIES THE USER PUT 3 ARGS ON THE COMMAND LINE …
public class Lab8 { public static void main(String[] args) { int totalTemp = 0;
public class Lab8 { public static void main(String[] args) { int totalTemp = 0; int average = 0; int[] temperature = null; for (int i=0; i<temperature.length; i++) { totalTemp …