35,618 Topics

Member Avatar for
Member Avatar for sclansing68

Write a Java™ application using NetBeans™ Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson. Consider the following factors: A salesperson will earn a fixed salary of 60,000 dollars. A salesperson will also receive a commission as a sales incentive. Commission is a percentage of the …

Member Avatar for JamesCherrill
0
272
Member Avatar for shailamureed

Hi i have an assigment that is giving me a hard time . I want to make a media player in java by using netbeans Can anyone give me an efficient way to do this assigment. please help me shoaib in java [Click Here](http://www.daniweb.com/software-development/java/9/contribute)

Member Avatar for JamesCherrill
0
392
Member Avatar for Nandomo

Is it possible to OCR an image using java? Any links to logic or examples or APIs would be appreciated.

Member Avatar for jwenting
0
102
Member Avatar for munish_pdf

I need to crearte pdf file from database table using java with multiple rows and column format design .

Member Avatar for jwenting
0
66
Member Avatar for nataraja833

Hi , Can anyone point me to fillPolygon source code , In Graphics.java it is declared as abstract class . - Nataraja G

Member Avatar for nataraja833
0
1K
Member Avatar for divinity02

hi everyone system.out.println("thank you all for the birthday greeting!!!!!!!!! much appreciated.) hi james it has been quite a while. sorry that I had upset u the last time I was here. I am trying to build a payroll system for a community college in java. and the calculation is off. …

Member Avatar for rproffitt
0
160
Member Avatar for laguardian

Hello guys, I'm trying to add an object called product into an ArrayList of orders. I'm getting an error: no suitable method found for add(Product). Did I miss anything? This is my addOrder method: public void addOrder(ArrayList<Order> orders, Product product){ orders.add(product); } I've passed the ArrayList of orders and the …

Member Avatar for JamesCherrill
0
496
Member Avatar for danielley

Square A square is a specific two-dimensional shape. Square should be implemented as a subclass of TwoDimensionalShape, a concrete class. A square has equal sides in both dimensions. This is how to create a square: public Square( int x, int y, int side ) /* use super constructor to set …

Member Avatar for JamesCherrill
0
158
Member Avatar for Bobbiegirl

Could someone please look at my ose and let me know where I may be going wrong. The problem to solve is define a class Odometer that will be used to track fueland mileage for an automobile. The class should have member variables to track the miles driven and the …

Member Avatar for JamesCherrill
0
912
Member Avatar for laguardian

Hello guys! I'm trying to call a method in main called "buyProduct" which displays all products to the user. I' a getting a NullPointerException though. Here's what I have: public static void main(String[] args) { OnlineShopping shop = new OnlineShopping(); ArrayList<Cart> carts = new ArrayList<Cart>(); ArrayList<Order> orders = new ArrayList<Order>(); …

Member Avatar for laguardian
0
376
Member Avatar for Sayam_1

i did a simple interface programme where one interface extends two interface.so,no error is showing,but no output is showing..here is the code.. interface a { int add(int x,int y); } interface b { int mul(int x,int y); } interface c extends a,b { int div(int x,int y); } class d …

Member Avatar for Sayam_1
0
96
Member Avatar for vivekH

I have a arraylist which i want to store in database.I am using preparedStatement so how can i pass my arraylist as parameter to store it in database. my code is: public void insertEnquiryRecord(StudentEnquiryEntity enquiryEntity) { // TODO Auto-generated method stub System.out.println(" hi from vivek.."); ConnectionFactory connectionFactory = null; connection=connectionFactory.getConnection(); …

Member Avatar for jwenting
0
237
Member Avatar for muskan.upadhyay.355

i am getting the value of button by request.getParameter and comparing by .equals.....but the values are not getting stored in the database(it is not entering the if condition)...hoping for a solution.

Member Avatar for stultuske
0
119
Member Avatar for nataraja833

Hello , When we do an XOR operation between two rectangles ( one is completly inside of the other ) output in GPC & Clipper is something like , exterior Rectangle + a Hole ( which is interior Rectangle ) for my application output has to be a set of …

0
79
Member Avatar for laguardian

Hello guys! I'm working a project and it seems that there's something wrong with my switch-case. For example, in the user menu, the user can input the number 2 then it would allow them to deposit, but somehow, it keeps displaying the first switch-case. switch(resp){ case 1: users.get(0).displayProfile(); users.get(0).editProfile(); break; …

Member Avatar for stultuske
0
213
Member Avatar for btissam

hi everyone ! I'm working on a network strategy game with 3 components one reffere will define the mission and 2 players will make moves and attacks in a turn based way . in the end of each turn , the reffere will generate a rapport of each player action …

Member Avatar for btissam
0
255
Member Avatar for Christina_4

I am working on an 8 queens problem, I am to place all 8 queens on the board before figuring out if they will attack one another. I am attempting to do this using a 2d array. How do I create random queens (1's) for each row, but making sure …

Member Avatar for JamesCherrill
0
374
Member Avatar for nataraja833

Hello , Can anyone give me an efficient way to do Rect/Polygon filling as below/Attachment . ![Patterns.png](/attachments/small/3/13ab1a68a958648cc9313476241adfb2.png "align-left") ![Patterns.png](/attachments/large/3/13ab1a68a958648cc9313476241adfb2.png "align-center") as of now I'm drawing lines & single pixel rectangles to do this and my application has slowed down so I'm looking for an alternative . This is an extension …

Member Avatar for nataraja833
0
487
Member Avatar for Ahmed_62

i have this code to make sodoko board with 9*9 cells(button cells ) but i cannot made all Jpanels contain my buttons i made the first Jpanel only import java.awt.Color; import java.awt.GridLayout; import java.lang.reflect.Field; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JPanel; public class Sodoko extends JFrame { private Sodoko() …

Member Avatar for JamesCherrill
0
230
Member Avatar for vasudha k

Can anyone help me out ?....... I have written a code for a form. the first five fileds in the form must be filled automatically by capturing the user id from login page. I have been able to capture the data and print it on the screen But, Iam not …

Member Avatar for jwenting
0
4K
Member Avatar for johnnny

Hello all, Need help with a little assignment in java assignment : user inputs sentence, replaces all lowercase letters in string to uppercase, and vice versa. ive created for (int i = 0; i < s.length(); i++) { if (Character.isUpperCase(s.charAt(i))) { to DETECT if there is an uppercase letter found …

Member Avatar for Lau_1
0
192
Member Avatar for Pallab_2

Hi, can anyone pls help to understand why its throwing class not found error, i am trying to learn how JWS works. i just followed this blog, though every thing looks ok.Attaching the files as well. http://examples.javacodegeeks.com/java-basics/web-start/java-web-start-getting-started/ Pallab

0
120
Member Avatar for skanagaraju

Hi Anyone uses Bootstrap?...Which version of JSF compatible with Bootstarp? Thanks Sabari

Member Avatar for jwenting
0
107
Member Avatar for Gabriel_7

ok well i just started with Java and i have an assignment that is giving me a hard time what i'm supposed to do is take an entry number(int) and then arrange its digits in an ascending and a descending way, the problem is i don't know much about arrays …

Member Avatar for stultuske
0
239
Member Avatar for sahil.d
Member Avatar for sasikrishnasamy

Hello All, I want to sort my list order by sno. This is my code, List<Employee>list=new ArrayList<Employee>(); Employee class has fields, one of field is sno (its String type); this field values are like this format 1.2.1 1.2.3 1.5.5 1.5.3 I want to sort this serial no. I used comparator …

Member Avatar for 2teez
0
431
Member Avatar for samantha2015

I have a class that implement all my workflow method. At some pointing time, when the request is approved by the workflow, I need to update status in database. For this I need to call the respective service class to save the status. The following method is saving the status …

Member Avatar for samantha2015
0
281
Member Avatar for Alok_5

I want to remove the specific nodes from xml file under song tag whose id =2 from the following file in Android (Java): <music> <song> <id>1</id> <albums_id>1</albums_id> <title>Someone Like You</title> <artist>Adele</artist> <duration>4:47</duration> </song> <song> <id>2</id> <albums_id>1</albums_id> <title>Space Bound</title> <artist>Eminem</artist> <duration>4:38</duration> </song> <song> <id>3</id> <albums_id>1</albums_id> <title>Stranger In Moscow</title> <artist>Michael Jackson</artist> <duration>5:44</duration> …

Member Avatar for Karan_8
0
287
Member Avatar for Ahmed_62

i have these buttons what i wanna do is when i press any of them change the button name to "Ouch!" import java.applet.Applet; import java.awt.Button; import java.awt.Color; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class sudokou extends Applet { Button num[] = new Button[9]; int x, y, i, j, n …

Member Avatar for JamesCherrill
0
225
Member Avatar for jorwill.harion

Hello! I am new in java and I have this code that will throw an exception if the numerator input is not an integer and will stop the loop process when the user input 'e' as its numerator. Thank you for your help in advance. package org.alibata.training.codes.exceptions; import java.util.InputMismatchException; import …

Member Avatar for JamesCherrill
0
444

The End.