35,618 Topics
![]() | |
Hey hey ..I've got stucked onto another one ... So, not sure how to explain this 1 but I can give an example ... When input = 1 - expected result is a string = "a b c d e f g h i j k l m n o … | |
Hey guys, I've got stucked on something here ... so to explain it here is an example. Let's say I have a string "aa a i". My idea is to get a result that is "aA A I". -> this is a challenge on Codehunt and I got stucked on … | |
Hey guys, I am making something that it takes a char, then it sums it with 5 and returns the new char according to the ASCII table, for example input is 'a' , then output will be 'f'. This code is doing it somewhat .. public static String Puzzle(String s) … | |
hello I am working with the daniwebjsptutorial the first one. I have a src and in it I have the resource.dir. I have the HttpServlet.jar there. I do not know how to get the LoginServlet class to find it using eclipse. Is there a standard entry point for the web … | |
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 … | |
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 … | |
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", … | |
Is the a model folder and file structure to follow if I wanted to build java projects in eclipse? | |
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 … | |
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 … | |
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 … | |
It has been about a year since I have even looked at code. I have written a few db desktop apps and I am beginning to learn the db web app. I am looking for advice. I had a hard time running apps I built in the netbeans environment as … | |
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: … | |
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 … | |
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 … | |
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; … | |
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){ … | |
Just need some help with java Math.max and Math.min when user inputs random numbers. | |
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 … | |
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 … | |
*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 … | |
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 … | |
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 | |
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 … | |
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 " + … | |
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 … | |
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. … | |
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> … | |
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 = … | |
How to create a simple 'Hello World' module in Magento? |
The End.