No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
20 Posted Topics
I am writing a program that uses a while loop to determine the largest number input so far. I have to input 10 numbers in whole. At the end of the loop, it should output the largest number. [CODE]import java.util.Scanner; public class Largest { public static void main(String[] args) { … | |
So I have to program this MVC GUI of a checkout line. I have a gui that has 10 registers. Each register has a queue of customers. There is a button that when clicked, will generate a customer and the customer will be entered in the line with the shorted … | |
So I have to implement a checkout line using a priority queue. I'm really stuck. I have 3 classes, a Register class, Store class, and customer class. Each customer has a service time which is the time it takes to check out. There are ten registers. Reach register has a … | |
So I created my ArraySet class from an interface. I'm trying to test my union method in my SetApp class, and I truly don't know where to begin. Can someone push me into the right direction? Btw, I know my SetApp class is messy atm, but I was just testing … | |
So I have this assignment where I am acting as a set. A set that holds numbers. In other words an array I am guessing. So he gave us a generic interface. Then we have to use another class and finish those methods. I'm having trouble because I've never used … | |
I am using an array to store 5 test scores. Then I have another array for the total possible score the test could have. I just need to find out what percent the grade is out of the total possible score. [CODE]public class Main { /** * @param args the … | |
Hi everybody! I'm trying to solve a problem on excel. So it's the following. I need to create a timer where it adds 3 to the variable final each 30 seconds . . This is already done. Now it needs to create an excel sheet and write the value of … | |
How would I go about converting a string to an integer? Say someone enters a 4 digit string. Like 1234. Could I use the place of each digit and work with it? Pretty much, I wanna get 1 from the string "1234" and put it in a variable. Then get … ![]() | |
I have to write a program that creates a GUI and asks the user to select from a group of buttons which time of the day they made the call, and input in a text field how many minutes the call was. for the day time, it's supposed to be … | |
Im writing the demo for my class to demonstrate each method. The class takes a number and assigns it to a month, or is supposed to. I have it working to say month 1 is January, month 2 is February and so on. I want to user to enter a … | |
Ok, I know most of you will read this and think I am a liar, but I am really just trying to practice with multiple classes and methods. So I picked out a programming challenge from my book to see if I could get through it. I wrote the class … | |
I have to create a program that makes a lottery like game. My teacher wants me to use the constructor to initialize all the fields but I can't seem to get it to do that. Everytime I put the fields in the constructor initialized, I get compile errors. So right … | |
I need help with this program write a payroll class that uses the following arrays as fields: *employeeID.- an array of seven integers to hold employee identification numbers. The array should be initialized with the following numbers: 5658845 4520125 7895122 8777541 8451277 1302850 7580489 *hours.- An array of seven integers … | |
So on my home network, I have just two computers. I have a linksys router. On my laptop, which is running vista, I type in net view in cmd to view the host names on my network. I only get my laptops host name. I have my other computer, which … | |
Can someone help me with error trapping. For instance, if I asked the user to input only a numeric type, 0-9. Then how would I go about creating an error message if the user inputs "hey." I know that I could easily use the Try, Catch statements but I want … | |
Re: So first you would make the method. Then in main be sure to call it at the appropriate time. [CODE] public static void main(String[] args) { splashScreen(); calls the method } public static void splashScreen() { System.out.println("Name: ....... \n" + "Date Created: March 19, 2010 \n" + "Purpose: ................"; } … | |
I just wrote my first program using methods (I am only on chapter 5). I am not sure where I would use javadocs other than the ones that I already have in my code. Can someone help me? [code]/** * @author Brock Shelton * Date: March 15, 2010 * purpose: … | |
I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 … | |
Re: If you gave your key out to someone. All that person would have to do is to have some basic networking knowledge and download a free network monitoring software. It is very simple as long as you are connected to the network you want to sniff. They could definitely tell … |
The End.