35,618 Topics

Member Avatar for
Member Avatar for lele07060

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?

Member Avatar for stultuske
0
104
Member Avatar for ARaza110

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?

Member Avatar for stevanity
0
167
Member Avatar for pseudorandom21

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]

Member Avatar for stevanity
0
139
Member Avatar for jinglylime

Hi how do you delete the input on the textfield after a button is pressed. Thanks

Member Avatar for jinglylime
0
71
Member Avatar for ali11

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 …

Member Avatar for JeffGrigg
0
294
Member Avatar for lbgladson

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 …

Member Avatar for JeffGrigg
0
188
Member Avatar for aanders5

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 …

Member Avatar for aanders5
0
338
Member Avatar for Hikari123

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 …

Member Avatar for Hikari123
0
843
Member Avatar for DaniwebOS

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 …

Member Avatar for hfx642
0
167
Member Avatar for nchy13

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++.

Member Avatar for stevanity
0
118
Member Avatar for lorettah

<HTML> <HEAD> </HEAD> <BODY> <APPLET Code = WelcomePage.class width=300 height=300> </APPLET> </BODY> </HTML>

Member Avatar for Taywin
0
96
Member Avatar for code 117

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 …

Member Avatar for Slimmy
0
513
Member Avatar for woodmaj

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 …

Member Avatar for JamesCherrill
0
537
Member Avatar for dnyansagar

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 …

Member Avatar for dnyansagar
0
223
Member Avatar for sarathsshanker

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

Member Avatar for JamesCherrill
0
105
Member Avatar for pikalife

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 …

Member Avatar for stevanity
0
131
Member Avatar for sitajaf

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

Member Avatar for sitajaf
0
107
Member Avatar for rajeshredy

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 …

Member Avatar for JamesCherrill
0
77
Member Avatar for corliss

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 …

Member Avatar for StephNicolaou
0
168
Member Avatar for pbracing33b

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 …

Member Avatar for Zaad
0
184
Member Avatar for powerdink

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 …

Member Avatar for JamesCherrill
0
193
Member Avatar for aanders5

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 …

Member Avatar for peter_budo
0
285
Member Avatar for samthelamb

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 …

Member Avatar for harinath_2007
-2
214
Member Avatar for gouki2005

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; …

Member Avatar for Zaad
0
204
Member Avatar for askylitcity

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 …

Member Avatar for Zaad
0
104
Member Avatar for kei01040

[CODE]import static java.lang.System.*; public class ShipTester { public static void main (String []args) { Ship s1 = new Ship(); s1.setX(3); s1.setY(10); s1.setSPeed(22); out.println(s1.getX()); out.println(s1.getY()); out.println(s1.getSpeed()); out.println(s1);//calls the ToString method Ship s2 = new Ship (3,10, 22); ship s3 = new Ship(5,7 ); s3.setSpeed(19); out.println(s1.equals(s2));//s2 becomes rhs out.println(s1.equals(s3));//s3 becomes rhs } …

Member Avatar for Zaad
0
109
Member Avatar for philipghu

Hi, it is kind of a beginner's question... I'm trying to read user's input from keyboard. The user types in: a1 a2 a3 b1 b2 b3 c1 c2 c3 ... in which each line has three integers separated by a space. Every three integers are on the same line. [CODE]Scanner …

Member Avatar for turt2live
0
116
Member Avatar for tran21

it's my homework and i have no clue what i'm doing. i pay attention in class but i still don't know what's going on! it's a 2 part project, with a cointoss class and histogram class. this is my cointoss class [CODE]import java.util.Scanner; public class CoinToss { private static final …

Member Avatar for tran21
0
643
Member Avatar for moonL!ght

hellow, i wondering will be able to draw a pi chart with diffrent scetions colored diffrently with out using Graphics2d class....in addition that i want to make it rotating 360 degree.:icon_neutral:

Member Avatar for hfx642
0
183
Member Avatar for Kevingon

Hi all, I have a serious problem, I made a program in java that prints reports, I made and tested the reports with one printer, but when I used the program in another printer (and another pc) all the fields are printed around 5mm down of the normal position. I …

0
87

The End.