32,199 Topics
| |
The standard deviation of a list of numbers is a measure of how much the numbers deviate from the average. If the standard deviation is small, the numbers are clustered close to the average. If the standard deviation is large, the numbers are scattered far from the average. The standard … | |
I tried to broadcast an object using object serialization and UDP connection. I am using netbeans IDE and i use a Java Desktop Application for both sending and receiving ends.Obect is broadcasted when a button is clicked. And i get the following exception... Oct 29, 2011 1:50:04 PM receive1.Receive1View jButton1ActionPerformed … | |
I have a server to which clients are connected using TCP connection. All the clients broadcast to each other using UDP braodcasting.I want to disconnect one of the client from the UDP connections from server. what can be the possible ways to do this? please suggest. | |
i need to Pass in three integers corresponding to an RGB value and use the appropriate Color constructor to set the background color. [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass2b extends Applet { int r; int g; int b; //Color color = new Color (r,g,b); public void init() { String … | |
I need help in creating a RPN calculator! I'm currently stuck in making a stack. here is my codes so for.This is my first time I am using stack. [code] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; public class JavaCalculator extends JFrame{ Stack s = new Stack(); … | |
I really need help with the computer science class & the tutors at my school do not fit into my schedule. Would anyone be willing to help me with some of my labs? | |
Can someone please help me out that how execution of Inter-process communication in java is done, where a single process tries to receive from two mailboxes. I mean the send() and receive() operations? | |
What is the equivalent of the "setw" stream manipulator for C++ in Java? I've been messing with the java.util.formatter class, but haven't figured this out yet? [url]http://www.cplusplus.com/reference/iostream/manipulators/setw/[/url] | |
Hi how do you delete the input on the textfield after a button is pressed. Thanks | |
I need help in creating a RPN calculator! I'm currently stuck in making a stack. here is my codes so for. [CODE]/** * * * */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; public class JavaCalculator extends JFrame{ private JFrame f; private JPanel p1,p2; private JTextField jtfMain; private JButton … | |
I wrote a program called Geometry that finds the volume and surface area of a sphere, cone and cylinder. I have to use JUnit 4 Testing to test the separate classes. I have written the following code but when I run the test it says it fails even though my … | |
How would I get a value in between the two quotes after value=? So, value="hi my name is bob" /> would return: hi my name is bob or value="Ouch! "that hurt" lol..." /> would return: Ouch! "that hurt" lol... so basically I know the value=" TEXT_HERE " /> will always … | |
Hi, I am suppose to create a code that takes the values between 1-1000 and produces the hailstone sequence for them, then it prints out the initial value that produced the longest sequence along with the sequence's length. I have tried to use an array but it didn't seem to … | |
Question for you guys, what am I doing wrong here? I am able to enter the 5 digits in one input and I just want it to display the first character; just to test to see if it works. Afterwards I will be displaying all 5 characters like "1 2 … | |
hi all!! i wanted to know the name of book which covers all the basic syntax and concepts of java keeping in mind that i have the basics of c++. | |
<HTML> <HEAD> </HEAD> <BODY> <APPLET Code = WelcomePage.class width=300 height=300> </APPLET> </BODY> </HTML> | |
Hi guys, hope you can help. I'm creating a mixture of an employee scheduling system with elements of a Human Resource Management System for small to medium businesses. I ideally want to create a java application with a database backend, which I'm trying to see if I can apply sql … | |
Write a program that tells you if the expression entered is a tautology or not. Assume that you have no more than three propositional symbols in your expressions -- call them P, Q, R. You must use the linked list implementation of the data structures needed. The above is my … | |
Hi everyone. I have been using ubuntu for a while now. But this recent upgrade of ubuntu from 11.04 to 11.10 has caused me some problems. Mainly that some java applications are not running properly. I was using Figtree(phylogenetic tree app.) which was working fine until this upgrade. Now everytime … | |
public class thermostst{ private float currenttemp(); } I thought in java only abstract classes can contain abstract methods like this! I got this from a algorithms and data structures book and im guessing its a printing mistake and currenttemp should not contain the () . Thank You | |
So both classes are in the folder. How am I able to call variables in one class from another another class. For example, I ahve 2 classes, Class1, and Class2. So in Class1, I have "double a" and its value. How can i refer to this "double a" and its … | |
Can someone pliz guide me on how to consume jax-ws web services from a gwt app. Or if one knows a good tutorial can post a link. Thanks | |
Here is a item tablelist.Its a JCombobox.I wrote the itemlistener for it. The problem is when ever i select an item in it for the second time onwards i am unable to see the data in the listScroller in UI,but i can see the data in the console. Ewerything is … | |
Hi All, I am having a bit of an issue moving back into Java. The issue that I am having is that I am trying to call a method of a custom class that has been instantiated in my main java file from a form that is also in an … | |
I am having problems with this line of code: --System.out.println(line +"is ranked at" + location + " in popularity amoung girls with" + model.getFrequencyListName(location));-- what it is telling me is that I need an int method for getFrequencyListName, and I have have one but it is for an array. Obviously … | |
I need some help. I'm trying to create a number pad like a cellphone that captures user input by pressing buttons in a panel on the left and displaying what the user punches in the top panel. Then I have a clear button in the panel on the right to … | |
Okay, so what I am trying to do is pull user data from a phpBB forum site, basically just what a member's ID is, their "rank", join date, and the other information fields that are generally displayed on their account to the public. The problem is, the site is setup … | |
I dont understand how to do this, my teacher suxs at teaching. He's a smart guy, just a really dumb teacher.. Have you ever had one of those teachers? Its a pain. Anyways This is due before 12am tonight..Please Help me solve it::: Create a hangman program. Sample output from … | |
Hi guys i am having this exception [I][I]Initial SessionFactory creation failed.org.hibernate.MappingException: Foreign key (FKF5B10F06F8C1E633:detalle_pedidos [pedido_id])) must have same number of columns as the referenced primary key (pedidos [pedido_id,cliente_id,empleado_id]) Exception in thread "main" java.lang.ExceptionInInitializerError[/I][/I] according to this my table pedidos mismatch detalle_pedidos here pedidos pojo [CODE]import java.math.BigDecimal; import java.util.Date; import java.util.HashSet; … | |
Hi, I'm having an issue with the following directions: public static int aPower(int a) Given a number a > 1, Returns a number n such that for some m > 1 we have a = n ^ m. If no such n exists it returns 0 public static int aPowerOf2(int … |
The End.