- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
what are the tasks left to complete in this program now?
here is the modified program very well made :) import java.util.Random; import javax.swing.JOptionPane; public class Pa { public static void main(String[] args) { JOptionPane .showMessageDialog( null, "Welcome to my Rock, Paper, Scissors game!\n John Acosta Java CIS 2235\n Chapter 4 pg 153\n press ok to play!"); int flag = 1; …
fixed code: [CODE]import java.util.Scanner; import java.util.ArrayList; public class ItemList extends ArrayList<Item>{ //Array ArrayList<Item> Output = new ArrayList<Item>(); Scanner kb= new Scanner(System.in); String sort; double totP; public void addItem(){ //creates new item and adds to array String iname; int iquantity; double iprice; int isold; String inotes; String ilocation; String itype; System.out.println("Type …
fixed it! [CODE]import java.util.Scanner; public class reverse { public static void main(String args[]) { String original = "hi how are you", reverse = "", nonrecurse = " ", delimitedReverse = ""; Scanner in = new Scanner(System.in); // System.out.println("Enter a string to reverse"); // original = in.nextLine(); int length = original.length(); …
eclipse is not linked to the java libraries or they are not installed To setup Eclipse to use the JDK you must follow these steps. 1.Download the JDK First you have to download the JDK from Suns site. (Make sure you download one of them that has the JDK) 2.Install …
[code] import java.math.BigInteger; public class BigIntegerisProbablePrime { public static void main(String[] args) { BigInteger num1 = new BigInteger("3511"); isPrime(num1); BigInteger num2 = new BigInteger("3512"); isPrime(num2); } static void isPrime(BigInteger bi) { if (bi.isProbablePrime(15)) { System.out.println(bi.toString() + " is a prime number"); } else { System.out.println(bi.toString() + " is not a …
can u post the whole code or the area where you declare the array list "array"
[QUOTE=stultuske;1773836][Code=Java] Object[] row = new Object[3]; for ( int i = 0; i < 3; i++) row[i] = readObjectFromDB(); [/Code] if you don't know up front how many items there will be, use a List or a Collection. is your key stored in the DB?[/QUOTE] but he/she is talking about …
fix is [code] // DONUT text field private JTextField tfChocOreo = new JTextField("0"); private JTextField tfPeanut = new JTextField("0"); private JTextField tfStrawberry = new JTextField("0"); private JTextField tfVanilla = new JTextField("0"); private JTextField tfBlueberry = new JTextField("0"); // ADDITIONAL FOOD Text Field private JTextField tfCorn = new JTextField("0"); private JTextField …
The End.
Jaggs