32,204 Topics

Member Avatar for
Member Avatar for c.pentasuglia

Okay so i am started a project for a java class of mine, i would like to make the game simon, you know where there are four different colored buttons and it plays random sequences and you have to repeat them. I was thinking of using the random function, but …

Member Avatar for donaldw
1
181
Member Avatar for benregn

Hi, I need some help with a school project. This is what I have done so far: (Sorry about the wall of code) [code=java] public abstract class State { private double drinkPrice; private double amountPutIn; private String selection; public State() { } public State(double drinkPrice, double amountPutIn, String selection) { …

Member Avatar for benregn
0
2K
Member Avatar for kievari

Hi, I have a variable of type Object, which is obtained from an xml-rpc call like: [CODE] Object[] params = new Object[]{new Double(4.0), new Double(5.0)}; Object result = client.execute( "foobar.add", params ); [/CODE] and I know that it contains this xml data: [CODE] <methodResponse> <params> <param> <value><struct> <member><name>value1</name> <value><double>4.2</double></value> </member> …

1
84
Member Avatar for wakydevil1

I am sorry if this question is really basic. I was creating a Web Service which sets a watch on a database trigger. And when the trigger fires, I get an email. I couldnt find anything which would help me send an email directly from MYSQL using some kind of …

0
54
Member Avatar for sam_inquisitive

I am doing a project on "performing automated testing on open office tools" (Open Office bcoz -being open source ,its source code is available for testing & its modifiable too). I m either to use an already existing tool : winrunner or QTP, to generate and check test cases or …

0
50
Member Avatar for d0pe

I need to create a function that returns a number with the amount of characters in common among one string and a vector of them. [CODE]public int sameChars (Vector<String> otherStrs){ int result = 0; String original = "aab"; for (int i=0; i< original.length(); i++) { char aux = original.charAt(i); String …

Member Avatar for d0pe
1
102
Member Avatar for MxDev

Hi guys, I demand to know the correct order of the following topics to study [COLOR="Green"]Object Oriented Design and Analysis[/COLOR], [COLOR="Red"]Design Patterns[/COLOR], and [COLOR="Green"]UML[/COLOR] Thanks in advance [EL-Prince]

Member Avatar for MxDev
-3
165
Member Avatar for ubundows

Hi to everyone. I'm a beginner at Java and I'm studying a software develoopment course right now. I have a problem with my first assignment. In particular with the last exercise of the assignment that is about writing a program that shows a character distribution with a counter that shows …

Member Avatar for parry_kulk
0
129
Member Avatar for system analysis

i wttched a pdf file can you open and c it please help me and solve this assignment..... please i want it neccessary....

Member Avatar for aubyoub
-1
76
Member Avatar for vasunttfshimoga

Hello, have a good day. please help me to read large amount of data from secondary storage device in java very quickly..............pls.......pls........ls..........s........

Member Avatar for javaAddict
-4
52
Member Avatar for saadismail85

i need to print stars on console like this * * * * * * * * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * …

Member Avatar for javaAddict
0
95
Member Avatar for Rajashree24

Hi , Can any one tell me differences between Statement ,Prepared statement,CallableStatement and when to use which (Clear Idea)

Member Avatar for javaAddict
0
77
Member Avatar for Bluesilver

Hi, I have an assignment requiring me to use the printStringArray method, but I can't find any examples on how to do so in my textbook or on the web. Can anyone provide an example please? I'd be very greatful!

Member Avatar for jasimp
0
100
Member Avatar for gunjannigam

I have a toolbar and various buttons in. There is always a dashed line displyad along the borders on last button clicked. Aslo there are some sliders in my panel. When I try to adjust the value of a slider it also has a dashed border. This border is only …

Member Avatar for javaAddict
0
99
Member Avatar for Farfie

Hello. I need to write a static recursive method that returns the frequency of occurrence a particular digit d in an integer n. For example, if passed (1342457,4) it should return 2, whereas when passed (1342457,6) it should return 0. I won't put my code in as it is arbitrary, …

Member Avatar for stevelg
0
159
Member Avatar for CuteCat

I can't figure out what's wrong - I was remaking the code from an older and messier version, but now I've hit a roadblock because what I say in the actionPerformed section just doesn't happen. I suspect that it's because of the Timer, which a friend adviced me to link …

Member Avatar for javaAddict
0
195
Member Avatar for brandon84

I cant get "\nNet Pay: " + netPay(dGrossPay, dRetirement)); to display anything other than 0.0. I know I need to assign a value to dGrossPay but im not sure how to. [CODE] public int menu() { Scanner keyboard = new Scanner(System.in); String strUserName; double dHours; double dRate; double dGross = …

Member Avatar for brandon84
0
124
Member Avatar for dharm_naresh

Hi, When I convert a String value to float by using Float.valueOf(String), The return value is not containing last decimal. Ex: String a = 2.50; float b = Float.valueOf(a); Now the float "b" is holding only upto 2.5. It is not converting String value to float properly. My requirement is …

Member Avatar for mrnutty
0
107
Member Avatar for babylonlion

Hi everyone, I'm trying to write a code that converts the number that a user inputs to either Celsius or Fahrenheit simply by pressing a button. So far I was able to compile and run the program displaying the panel, buttons, and the text field but I'm not sure how …

Member Avatar for babylonlion
0
769
Member Avatar for COKEDUDE

Why is this an illegal start on an expression? public Account consolidate(Account accnt1, Account accnt2) In my if statement It says name has private access in account. What does that mean and how do i fix it? if((accnt1.name).equals(accnt2.name)) [CODE]//*********************************************************** // TestConsolidation // A simple program to test the numAccts method …

Member Avatar for Ezzaral
0
152
Member Avatar for d7o0om

hey everyone, I have a quick question, and appretiate any help given, I need to check if my Javadoc is correct or not, I have this assignment due, but don't know if there would be a javadoc comment for the "boolean" I added a javadoc comment to check with you …

Member Avatar for d7o0om
0
78
Member Avatar for vampgirl13

I have this build method for my expression tree. I want to build it in infix but its not coming out correctly. So, I was wondering if anyone can help me. Thanks. [code]private TreeNode build(Scanner input) { boolean leaf; String token; int value; TreeNode node; leaf = input.hasNextInt(); if (leaf) …

0
68
Member Avatar for onsir

Hi, how to create trigger in mysql 5 with java. i have code like this, but still error " java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$ CREATE TRIGGER `a1`.`xData` …

Member Avatar for Ezzaral
0
352
Member Avatar for eggmatters

Hi all, UDATE: Let's not hastily rush into this. I may have found my problem. BTW, my result set is populated with all of the required data. I have a custom renderer which renders table cell values from a query. The result data is populated into a 2 dimensional array. …

Member Avatar for eggmatters
0
108
Member Avatar for Web_Sailor

I have got a problem with the layouts. I am creating a Grouplayout for my JLabels / Buttons etc in a window .. Then I am adding a Jtable using the JFileChooser for which I am specifying GridBagLayout and then adding the layout to Jframe again after JFilechooser creates a …

Member Avatar for Ezzaral
0
111
Member Avatar for geek_till_itMHZ

Hi Everyone... I need to convert a JFRAME to an APPLET can I do that by simply extending the JApplet Class and replacing the main method with start ? I've tried this and my program will compile but wont run Here Is the Original Code [CODE] import javax.swing.*; import java.awt.*; …

Member Avatar for Ezzaral
0
239
Member Avatar for Shaitan00

I am trying to send an EXCEPTION from a Web Server to a Client using JAX-WS ... When the exception is thrown by the server the client does catch it ... but the contents are not the expected message... [Code] [Server.java] package pck; @WebService() public class Server { @WebMethod() public …

0
92
Member Avatar for Trogan

Hi, I am trying to get the max number from an array, but I'm not sure how to tackle it. This is what I have so far. [CODE]import javax.swing.*; public class InitArray { public static void main( String args[] ) { int array[] = { 69, 23, 47, 81, 92, …

Member Avatar for Ezzaral
1
965
Member Avatar for oldSoftDev

[code]List result = q.list(); if (result.isEmpty()){ System.out.println("No Projects"); } else{ for(Object object : result){ Project p = (Project) object; System.out.println(p.getName()+" worked on by "+p.getEmployees().getName()); } }[/code] [Quote] error : CompanyReports.java:303: cannot find symbol symbol : method getName() location: interface java.util.List<Employee> System.out.println(p.getName()+" worked on by "+p.getEmployees().getName()); ^ 1 error[/Quote] Can anyone …

Member Avatar for oldSoftDev
0
127
Member Avatar for ShuiYinDeng

import java.util.*; public class MainAssignment3 { public static void main(String[]args) { int Max =0; int Value =0; LinkedList<Integer>Input=new LinkedList<Integer>(); LinkedList<Integer>Temp=new LinkedList<Integer>(); LinkedList<Integer>OutPut=new LinkedList<Integer>(); Input.addLast(90); Input.addLast(21); Input.addLast(33); Input.addLast(80); Input.addLast(67); System.out.println("The Input Stack is : " + Input); while(!Input.isEmpty()) { Max = (Integer)Input.removeLast(); Value = (Integer)Input.removeLast(); System.out.println("MAx: " +Max); System.out.println("Value: " +Value); …

Member Avatar for gangsta1903
0
88

The End.