32,204 Topics
| |
hey, i have jsp file that contains drop-down list once the value is selected from drop down list one of the javascript methods gets invoked that alerts me with what has been selected. what i need is once the value has been selected it would be sent to a my … | |
My program needs to tell whether two Students were selected, and if so I need to output to the screen their averages. I got the first specification which works for only one selection (just shows grade) but I have no idea to tell whether they selected two from the list... … | |
Problem: it print "null" in front of every line for example input this is sparta output [COLOR="Green"]null[/COLOR]histay isay partasay [CODE]import java.util.*; public class PigLatin { String[] piggieLatin; String[] sentence; public PigLatin(String[] random) { sentence = random; piggieLatin = new String[sentence.length]; } //repalce everything beside a~z with space public String punctuationFree(String … | |
Hello, I need to perform a binary search on an array of objects but to do so I need to have them sorted. I've been looking online and no one really has a good explanation of how to conduct a quick sort on an array of objects. If you can … | |
i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] … | |
So I have an array [CODE]String[] directions = {"n", "e", "s", "w"}; Random dirPick = new Random(); int rNum = dirPick.nextInt(4); String direction = directions[rNum];[/CODE] Now say that one of these doesn't exist and if it picks it I need to take it out of being able to be picked. … | |
Hello all, I am currently in the process of learning C++ for a work term position I am on. After hitting a wall trying to teach myself from books I decided it might be easier to translate some old Java programs from school into C++ to get a better understanding … | |
This is homework. I have the code written, though. The thing works. Mostly. The assignment is to write a program that reads a list of integers from a file, prints the maximum value in the list to the console, removes the maximum value from the list, and stores the (smaller) … | |
My friend and I are in a computer science class, and we were wondering how to edit the contents of a jar file? What software would we use, lines of code we might need, or any other input would be greatly appreciated. -From our computer to yours'- zach&kody | |
Hi every one ! Guys i am trying to do the Fibonacci numbers without an input just want it to number 8 then stop, But i want to do it using Do While i did it but , i am missing something i can't find what is it its won't … | |
Hello, i query data from database using jdbc, and there will be a lot of data.how can i solve 1 by 1 of the data?currently, my code just solve the last data. this is the pseudo: [CODE] JDBC connection query data = ResultSet{userid,task_id} while (Resultset()) userid, task_id count++ end close … | |
can anyone please explain what is function of this. ? Also, I could not understand enumeration. | |
Hi guys, My code below works well when it's assumed that PuTTY is resident on the Windows machine where this application is running, and have PuTTY connect to a Linux server on the local network. [CODE] //more code Runtime r = Runtime.getRuntime(); Process p = null; String s = "C:\\Program … | |
Hi I have search the net to an extent that I can not more and I still have not found the answer, so I am someone here can tell me, I want to be able to list all local drives in a system, but excluding USB. Network, DVD, etc This … | |
When I run my program, sometimes it shows up and sometimes it just shows a blank frame. Is this because it's having trouble loading the canvas/buttons and all that stuff...aka do I need a loading screen and how do I do one in java? | |
I need program for get all user from the system or server ... Thanks in advance.. | |
Hi All, Iam using RSF, I need to clear a form after user clicks on submit button using onLoad function in Javascript. Can anyone give me the solution. immediate help is appreciated | |
[B]For the error and my question, skip to the bottom. I just posted all of the code in case it's needed.[/B] [CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and … | |
Hey I am almost done with my hangman game for java but Im having a tough time in getting the last bit of it. I have included ALOT of comments for you guys to help me out with it. [CODE]import java.io.*; import java.util.*; import javax.swing.*; public class Hangman { public … | |
I have my code set up so I can 1)select what image and 2)the coordinates of the mouse click where the image is going to be placed. What it currently does it place the right image in the right coordiantes but if I click again somewhere else, it replaces the … | |
I have been trying to make my program load the images while using web start with no success. The following code is inside an extended JButton class. Image is a string containing the address of the desired image ("0.jpg", for example), I know that this would only work if the … | |
How to write the recursion code in calculating the sum of the array elements at odd value? I understand the factorial example using recursion, but I am having a really big trouble when writing the recursion codes to perform anything else on my own :/ Please help with this task … | |
Hi everyone, I'm trying to create a program that you can use to communicate to other people with the same program. It connects to a Server program that gets your message an send it to everyone. I found 2 problems that I haven't been able to solve. The first one … | |
I have a [ICODE]JFrame[/ICODE] window to which I am trying to add 3 panels. One panel is for input (text areas and their labels which I already have arranged within the panel), one is for a set of buttons, and one is for output. I want the the input and … | |
I am interested in hiring a software developer but I do not know what should I be asking for when I post the job. My project consists in developing a software that can analyze an edge-matching puzzle game of my invention to produce as many possible solutions numbered, and also … | |
I have a simple jpg image saved in a field of type longblob. Now i need to get that image and put it in a JLabel or something similar to show the picture in the program. Anyone knows how can I do that please? I already know how to get … | |
So here's my assignment: Define a class Quiz that implements the Measurable interface. A quiz has a score and a letter grade (such as B+). Use the implementation of the DataSet class in Section 9.1 to process a collection of quizzes. Display the average score and the quiz with the … | |
Here is Assignment07: [CODE]public class Assignment07 { public static void main(String []args) { Asn07Employees emps = new Asn07Employees(ids, hours, rate); Asn07Employees allEmps[] = new Asn07Employees[7]; int ids[] = {5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 7580489 }; int hours[]={ 12, 15, 7, 16, -1, 20, 15 }; float rate[]={6.5f, 12.5f, 1.5f, … | |
I am supposed to take this program and use a method to tokenize the inputted string into words and store them into an array of strings. Then use another method to print the array element one word per line. I need help on the first method, trying to tokenize and … | |
Hello Everyone I was instructed to do the following but came up with 10 errors which are listed below can anyone please help with this. Write a sentinel loop that will sum all positive integer values entered; use a negative number to end the loop. Be sure to test for … |
The End.