32,204 Topics

Member Avatar for
Member Avatar for GingerDontCare

Hello Daniweb, So, I am currently working on a simple download time estimator program using JOptionPane and some loops. I have some beginning code and wanted to check how it is working, only it seems I messed up something and am stuck in my loop when I run it. I …

Member Avatar for GingerDontCare
0
1K
Member Avatar for anand01

Hi all, I have developed application to to read xls file using JExcelApi. Now the requirement has changed that I want to read xlsx files.I know that Apache POI can resolve this but need to change complete reading logic. Insted of change the read logic is there any way to …

0
78
Member Avatar for Siick7

public class InventoryProgramPart1{ public static void main (String args []){ DVD dvd; dvd = new DVD(1, "Just Go With It", 8, 2.04); System.out.println(dvd); dvd = new DVD (2, "Gnomeo and Juliet", 2, 1.34); system.out.println(dvd); dvd = new DVD (3, "Black Swan", 6, 2.20); system.out.println(dvd); dvd = new DVD (4, "Zookeeper", …

Member Avatar for stultuske
0
112
Member Avatar for James_30

Is the a model folder and file structure to follow if I wanted to build java projects in eclipse?

Member Avatar for peter_budo
0
189
Member Avatar for James_30

I have a couple java apps that run good in netbeans and in eclipse yet when I compile on the command line during the build.xml they all get these 100 errors. The list looks daunting but they are all dealing with joda time. Not sure what is going on. I …

Member Avatar for peter_budo
0
774
Member Avatar for Kim_3

Description: You are to develop a program that prints out the multiplication or addition table given the users start and end range and type of table. The program will make use of 2D arrays to calculate the table. The program will make use of the System.out.printf() method to allow formatted …

Member Avatar for rubberman
0
220
Member Avatar for Benny_1

Hi. I am making a really simple program to refresh my knowledge in java (which is obviously needed). When I click the screen, I want a bullet to appear in the center and move towards the point I clicked. Right now, when I click on the left half the bullet …

Member Avatar for JamesCherrill
0
199
Member Avatar for OFCLMAINrogieacuna

Hello! Badly need help. I need to do a program that will produce odd & even numbers using loop structure Sample output: Enter a number: 5 This number is an odd number! Input 1 to run the program again Input 2 to stop Enter your Choice: 1 Enter a number: …

Member Avatar for Varunkrishna
0
353
Member Avatar for Muhammad_65

i want to download JDK but i don't know jdk for windows xp 32 bit.. [Click Here](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) windows x86 or windows x64 where is it can i download for windows xp 32 bit?? i have try, but i can't download.. maybe their server down.. or something happen.. please.. give me …

Member Avatar for JamesCherrill
0
384
Member Avatar for moaz.amin.37

hello i am doing my assignment on simple calculator in java.Now I want to handle exceptions in it. so i need some information about exception for exemple a user enter any expression like `(10+23+56-55)` it is corrent formate but when the user enter wrong formate like `(20++56//5)` i mean operator …

Member Avatar for BenWard
0
415
Member Avatar for myiwlu10

import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanner; public class lotto { public static void main(String[] args) { String fileName = "lotto.txt"; final int arraySize = 45; int[] count = new int[arraySize]; File inputFile = new File(fileName); // Initialize the count array; for (int i = 0; i < arraySize; …

Member Avatar for stultuske
0
131
Member Avatar for Varunkrishna

Hello all I am using Generics in Java to perform some arithmetic operations, but I am getting some error **The operator + is undefined for the argument type(s) T, T** here is my code package com.genericsexample; public class GenericsArithmetic<T> { private T number1, number2,sum,product,difference; public void AddNumbers(T number1, T number2){ …

Member Avatar for ~s.o.s~
0
10K
Member Avatar for GingerDontCare
Member Avatar for Slavi
0
978
Member Avatar for soudruhcz

Hi All, I'm using Tomcat 7 with APR. I have HttpServletRequest from which I get client certificate. X509Certificate[] clientCertificates = (X509Certificate[]) req.getAttribute("javax.servlet.request.X509Certificate"); * when I do full SSL handshake, clientCertificates are returned correctly, * when I do Session identificator handshake, clientCertificates are returned correctly too, * but when is TLS …

Member Avatar for soudruhcz
0
238
Member Avatar for rayan22

public static void main(String[] args) { //Enter savings amount String savingsAmountString = JOptionPane.showInputDialog( " Enter savings amount"); //Convert string to double double savingsAmount = Double.parseDouble(savingsAmountString); //enter interest String interestRateString = JOptionPane.showInputDialog( "Enter annual interest rate "); //Convert String to double double annualInterestRate = Double.parseDouble(interestRateString); //Enter number of months String numberOfMonthsString …

Member Avatar for stultuske
0
97
Member Avatar for imBaCodes

*08:30:43,413 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC000001: Failed to start service jboss.module.service."deployment.crss-webui.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.crss-webui.war".main: JBAS018759: Failed to load module: deployment.crss-webui.war:main at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:92) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_67] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_67]* **Above is a part of my full stack …

0
129
Member Avatar for DawnofanewEra

Hey guys, can anyone help me to run my client program. I'm working on a simple Java RMI but I'm stuck running the client with the error. **java.security.AccessControlException: access denied ("java.net.SocketPermission" "144.120.114.32:1099" "connect,resolve")**. I have done a lot of search online but no one helps. I have tried **-Djava.security.debug=access,failure** and …

Member Avatar for ~s.o.s~
0
2K
Member Avatar for xxmp

hello i would like to charge a user using paypal or any other way you think that is better but i want when i charge the user i want to update my database. the application is in jsf any suggestion how i implement the solution? that you very much

Member Avatar for ashleywoodliff
0
209
Member Avatar for Raymond_5

public class Receipt public static void main (String[] args) { // Calculate total owed, assuming 8% tax/15% tip System.out.println("Subtotal:"); System.out.println("int.Subtotal:=108"); System.out.println("Mystring = Mystring.Replace(38+40+30,Subtotal)"); System.out.println("Tax and Tip:"); System.out.println((("Subtotal")*.08)+(("Subtotal")*.15));) System.out.println("Total:"); System.out.println("Subtotal"+("Subtotal")*.08 +("Subtotal")*.15); } } On line 10 it's giving me the ; expected error but when i put it in it gives …

Member Avatar for stultuske
0
187
Member Avatar for sankubha

I am Developing an Client Server socket application .Am reading Strings in server side for multiple clients inside run(override) method and I getting EOF Exception at readUTF. I Dont know why the error is comming and how to rectify it. while (ss.compareTo("true") == 0) { System.out.println("Waiting for port " + …

Member Avatar for sankubha
0
391
Member Avatar for silvercats

How to draw a convexthull and a polygon around the hand in this tutorial. I found this tutorial in JavaCV how to detect a hand gesture. But it doesn't show how to draw the convexhull or a polygon around the palm. Can someone tell me how to do that in …

Member Avatar for Hiroshe
0
243
Member Avatar for DawnofanewEra

Hi everyone. I've been working on a Java RMI project for quite sometimes but then I stuck with an error which I have not idea what its cause. **Error: Could not find or load main class Program.bin** I have run the rmiregistry right and do the configuration such as arguments. …

Member Avatar for stultuske
0
177
Member Avatar for prancode

Hi, I am trying to dynamically generate horizontal bars for my project. I would want to make these bars draggable, but I am not able to do so. Could you please tell me how this can be done using javascript/jquery. The code written so far is as follows: <!DOCTYPE html> …

Member Avatar for prancode
0
185
Member Avatar for Siick7

import java.util.Scanner; class EmployeeInfo { private double wage; private double hours; private String empName; public EmployeeInfo() { wage = 0.0; hours = 0.0; empName = ""; } public void setwage(double wage) { wages = wage; } public double getwage() { return wages; } public void sethours(double hours) { hours = …

Member Avatar for Slavi
0
156
Member Avatar for Boby Smith
Member Avatar for Pablo149

Hello to all who read this: I have been reading many of the posts here, where there are so many different levels of expertise. I am hoping that some of you may be able to provide me with some answers. I have read over and over again how formal training …

Member Avatar for stultuske
0
3K
Member Avatar for Slavi

Hey guys, I was just looking into LinkedList and I came accross couple of methods. I quickly made a linkedlist and added numbers from 0 to 9 in the list then tried different methods such as pop poll, removeFirst and they all returned the same answer from 0 to 9. …

Member Avatar for Slavi
0
142
Member Avatar for himanjim

The code simply captures your working window as jpeg image and stores it in the same directory as where your java class after compiling by javac is being stored

Member Avatar for Ashan_1
0
2K
Member Avatar for jasonj2248

So I have like 20 errors in here can someone tell me what I did wrong or how I can fix them? I'm trying to write a program to get the area and perimeter of a triangle. import java.util.*; public class myTriangle3 { //Declarations static double area; static double perimeter; …

Member Avatar for Slavi
0
132
Member Avatar for echocoder

I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want …

0
161

The End.