32,199 Topics
| |
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 … | |
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? | |
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 … | |
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. … | |
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 | |
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; … | |
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 … | |
i have few txt files in one folder. i need a program that will open that folder and read all files one by one to find a string and give me output. so far i got code to do this from only one particular txt file. but i cant make … | |
Hi, I have written an application that identifies if the fisrt number entered is a multiple of the second number. The application also displays the multiplication table of the second number. What I am now trying to do is to identify which postion the multiple is. For example, 5 * … | |
Hi, i'm new to java, can someone help to solve this question: In Wonderland a man distribute his monthly salary among his family as follows: • Half the salary goes on general expenditure in the house • one third of the remainder is spent on his car • Out of … | |
Hello great programmers at this website. Hopefully your day has been good so far. I was wondering if you could help me with some Java errors related to the header of my program that I am doing for an assignment. Thank you millions for your help. Here is the code: … | |
Hi guys I am trying to build a simple calculator but I cant get the answer to show in the output in Jtextfield here is the test // Testing Calculator import javax.swing.JFrame; public class CalculatorTest { // Main method public static void main( String[] args ) { Calculator calculator = … |
The End.