35,618 Topics

Member Avatar for
Member Avatar for plasticfood

ok i am writing a program that ask for the amount total and amount tender. then i'm supposed to calculate a combined amount of coins and dollars to make up the change amount. i know how to split out the dollar amount, but i'm stuck on how to calculate the …

Member Avatar for jon.kiparsky
0
150
Member Avatar for trustno1butme

Program requirements are as follows: Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the …

Member Avatar for fr0styh3rb
0
203
Member Avatar for hazeeel

Please help me to solve the error: coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 coordinates2T[a][b]=-3.7830557977332173 Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 at KateAug24.main(KateAug24.java:137) Press any key to continue... Thanks is adv! [CODE]import java.io.*; import java.util.*; import java.text.*; public class KateAug24{ private static StringBuffer buffer; private static BufferedReader input1=null; public static String [] arrayM1 = new …

Member Avatar for hazeeel
0
124
Member Avatar for drizzled42

[CODE]I am a graduating student, taking up BS IT. Unfortunately, i don't have a talent in the field of programming. I have a problem regarding our final project this semester in Software Metrics. Our teacher requires us to have HALSTEAD METRICS PROGRAM to be pass on SEPT. 13 2010. Any …

Member Avatar for coil
0
200
Member Avatar for plasticfood

ok i'm tryiing to convert a double into a string to get the 1st character of that number. [CODE] change = (amountPaid - total); String dollars = Double.toString(change); String firstNum = dollars.charAt(0); [/CODE] i got an imcompatiable type error on that part. change, amountPaid, total are double.

Member Avatar for NormR1
0
50
Member Avatar for oochi

Hi I want to write a loop that will terminate only when the cancel button is hit. I am using a JOptionPane.ConfirmInputDialog(null message1, Title, JOptionPane.OK_CANCEL_OPTION) to display three different messages at a time and the program will terminate once the cancel button has been hit. can someone please help oochi

Member Avatar for NormR1
0
91
Member Avatar for shantuli

hello everyone, can anyone please help me to solve the following problem. Write a program 1. To demonstrate division operation handling the arithmetic Exceptions. 2. To Access different elements of the given array: int [] arr1 = {10,69,30,12,11,34,56,78,35} Write exception-handling statements for ArrayIndexOutOfBounds Exception. thank you, regards, shantuli

Member Avatar for coil
0
176
Member Avatar for fr0styh3rb

Hello, I am developing an inventory program in one of my IT classes. So far I have implemented my Camera class correctly, I just need some help configuring my Inventory class. I have underlined the section of my code I am having trouble with. If someone could take a peek …

Member Avatar for coil
0
417
Member Avatar for churva_churva

how to do the adding of objects in array program using an interactive console/gui how to do the deleting of objects in array using an interactive console/gui how to do the updating of objects in array program using an interactive console/gui how to do the displaying of objects in array …

Member Avatar for churva_churva
0
87
Member Avatar for b.bhagwan

Hi!!!!!!!!!!!! I have developed a java program using GUI for entering the record of employee. I have used the MS Access to store,retrieve the information. It is working properly in on the system. But i want to open it throw web browser & want to share in database when i …

Member Avatar for NormR1
0
123
Member Avatar for Simes

So I am trying to implement a menu that loops in a CLI simulator, I have the menu implemented but I am stuck figuring out how to make it loop or progress to the next option that requires input from the user. I have used scanner in for the menu, …

Member Avatar for NormR1
0
180
Member Avatar for churva_churva

how to do the adding of objects in array program using an interactive console/gui how to do the deleting of objects in array using an interactive console/gui how to do the updating of objects in array program using an interactive console/gui how to do the displaying of objects in array …

Member Avatar for tong1
0
118
Member Avatar for forumite

Training management system: Hi, I want to build a webpage in a plain HTML, JavaScript, CSS. In this webpage, I want to build a TRAINING MANAGEMENT SYSTEM. Requirements: 1. A form which should take the trainee's unique id and process it. If the entered trainee ID matches with any of …

Member Avatar for Henzard
0
226
Member Avatar for Waseem Siddiqui

[B]I want to override a method of superclass in subclass the method have same name in both the class. But I want to call the method of superclass with the object of subclass Please Hlep[/B] Please consider the following code class a { void a1() { System.out.println("Hello from a"); } …

Member Avatar for JamesCherrill
0
221
Member Avatar for ahsan1

where to place new java api jdk. I have downloaded stanford parser package which contains stanfor-parser.jar file and java api. I want to use it programmatically, where should I place that package or java api in my jdk.

Member Avatar for JamesCherrill
0
61
Member Avatar for steveh000

Hi guys I have been attempting to get my software to create new records in my database. For some reason something that should be simple is telling me my syntax is wrong on this line [code] String ex = "INSERT INTO `client_net_score`.`brands` (`id`, `brand`) VALUES (NULL, '"+bra+"');";[/code] so the string …

Member Avatar for steveh000
0
205
Member Avatar for churva_churva

Please help me to create a program that will demonstrate the following using an array...... 1.Adding of objects 2.Deleting of objects 3.Updating of objects 4.Displaying of objects.. An interactive program using console/gui... thanks...hope you can help me...just send the code, please help me....

Member Avatar for churva_churva
-1
285
Member Avatar for Papitha Murugan

[CODE] <%@ page language="java" import="java.sql.*" errorPage="" %> <% Connection con = null; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); Connection conn = DriverManager.getConnection("jdbc:odbc:mydsn","a", "a"); PreparedStatement psSelectRecord=null; ResultSet rsSelectRecord=null; Statement st=null; String sqlSelectRecord=null; String Name=null; String id=null; String doj=null; String address=null; String contact=null; String dob=null; String blood=null; String gender=null; String pan=null; String martial=null; String email=null; String f1=null; …

0
55
Member Avatar for rebellion346

Hey guys. I just signed up and was hoping someone could help me out here. So for this program that's an assignment for my CS 1410 class.There's 2 dices and im suppose to do 1 million rolls. The program is suppose to calculate percentage of how many times the following …

Member Avatar for rebellion346
0
494
Member Avatar for laughnan

I am working on a java applet that sends information from the applet to a gmail using JavaMail. I downloaded the JavaMail package and using the mail.jar file it [B]does[/B] send to the email from my Eclipse workspace. However, when I ftp the files (ContactForm.java, ContactForm.class, mail.jar, and test.html) to …

Member Avatar for laughnan
0
417
Member Avatar for signum89

I already have an infix to postfix converter, now I want to get the answer from the postfix notation. Here is my code to evaluate a given postfix notation and (hopefully) get the answer: [CODE=java] public class testEVAL { private StackArray SA; private String input; private int postfixEVAL; //start constructor …

Member Avatar for NormR1
0
225
Member Avatar for lisa.wells7

Hi I am new to Java and need some help with a call to a private helper method. The helper method has a arraylist and char in the argument. Helper Method signature: [ private List<aClass1> getDancers(List<aClass1> aList, char c) ] Here is the call to the above helper method within …

Member Avatar for lisa.wells7
0
207
Member Avatar for idontknow19

:)PLEASE RESPECT MY THREAD..Thank you for sharing your time and effort..thanks to the code Java Experts can you share to me some codes or program that will determine VALID or INVALID using the parenthesis symbol() inputs. The code must use Stack and it also tell what is the cause why …

Member Avatar for jon.kiparsky
0
129
Member Avatar for glenak

Hi, for any of you who have done some java programming in cryptography I need your help. I'm trying to right and blinding and unblinding procedure, however at the final stage I should get a true, but I'm getting a false. If you know what's wrong, can you point it …

Member Avatar for glenak
0
144
Member Avatar for deep.bwn
Member Avatar for NormR1
0
29
Member Avatar for raul8

I have an HTML/JSP page on which I have to display all the images stored in a folder. For this I have to use Java. Please tell me how this can be done. Will appreciate if it is possible to provide code for explanation. Thank You

0
91
Member Avatar for tn2130

Hey everyone. Im new to java and having some problems. The main idea is to connect to a website and collect information off it and store it in an array. What I want the program to do is to search the website find a key word, and store what comes …

Member Avatar for NormR1
0
284
Member Avatar for slamdunk

I dont have much experience with javascript. Please provide javascript to create something like the image below: [url]http://www.coolmicroscope.com/java.jpg[/url] "data:text/html,<html>ΒΆ <head> <script type='text/javascript'> function blinkIt() { if (!document.all) return; else { for(i=0;i<document.all.tags('blink').length;i++){ s=document.all.tags('blink')[i]; s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible'; } } } </script> <style> html, body { height: 100%; width: 100%; } body { margin : …

Member Avatar for peter_budo
0
175
Member Avatar for jemz

hello, hi can you help me what method to use to count how many words in a sentence... hoping for your positive responds thank you in advance...

Member Avatar for jon.kiparsky
0
125
Member Avatar for kennyvas

hi i want to know the role of a manifest file in the development of a javabean component

0
32

The End.