32,204 Topics

Member Avatar for
Member Avatar for NewOrder

i have a bit a weak understanding of those 2 concepts. could you explain to me what is happening in that part of the code? [CODE] public class Part5{ public static void main(String[] args) { // Object[] zoo=new Object[4]; // zoo[0]=new Cat(); Object[] animals=new Object[4]; animals[0]=new Cat(); animals[1]=new Dog(); animals[2]=new …

Member Avatar for NewOrder
0
114
Member Avatar for thamsg

how to validate the date in text field if wrong month or date is entered ex if month>14 or date >31

Member Avatar for cale.macdonald
0
61
Member Avatar for musikluver4

I want to be able to input two (2) 'grades' exactly like they are in the String array and have it come back printing BOTH showing the grades, again, as well as the grade score corresponding to those grades. For example: input C- (enter) B+ (enter) output does: ONLY the …

Member Avatar for samuel_okos
0
681
Member Avatar for iSax

I am a newbie in Java programming. There're one question requesting us to construct an algorithm to sum up all the odd numbers from 0 to 100. Is this consider an algorithm? • Start • set sum to 0 • set number counter to 1 • while number counter <= …

Member Avatar for JamesCherrill
0
96
Member Avatar for P00dle

Hi Daniweb. I just read the other threads on regex and couldn't find the help I am looking for. The problem is simple. I have a bunch of settings in a .xml file which I read into my program. One of the settings is '*.txt', which is used for regex …

Member Avatar for P00dle
0
131
Member Avatar for micial30

Can you help me to complete the code for this? The result should be in words. And wether 'A' or 'a' will be ok when you input the operator. this was the given: Enter First Number:8 Enter Second Number:9 M=* || m=* D=/ || d=/ A=+ || a=+ S=- || …

Member Avatar for Xufyan
0
86
Member Avatar for aro_kai

i am beginner in java field.can anyone suggest me how to start image processing in java...

Member Avatar for =OTS=G-Man
0
99
Member Avatar for nirvan v. jain
Member Avatar for fringe

selection menu : 1…Area of a Circle ----(3.14 * (r*2)) 2.Area of a Trapezoid ---- (height * (base1+base2) / 2) 3.Volume of a Sphere ---- (.75 * 3.14 *(radius*2)) 4.Volume of a Cylinder ---- (3.14 * (radius * 2) + height how would i make this using methods and switch …

Member Avatar for tong1
0
121
Member Avatar for Elisa

I would like to learn how to program in Java. Does anyone have any textbook /other resource suggestions?

Member Avatar for yasuodancez
0
363
Member Avatar for glenak

Hi, So, I did create a client and a server, and all of them work pretty well. When I send messages to the server, rather than sending one message at a time, I put the information in a class, say like a Person class - I put set the Person's …

Member Avatar for ~s.o.s~
0
86
Member Avatar for glenak

While I know how to set this up perfectly, I was wondering, is it possible to set up my jdbc connection with my access database so that I have to put in a username and password? I would really like to do this with access, if it's possible

0
65
Member Avatar for balucec

pls suggest me some methods for noise removal of a document image and also about the removal pf the background components of the document image like rules, margins etc.

Member Avatar for coil
0
50
Member Avatar for fr0styh3rb

Hello, I am having some trouble compiling my code for the inventory program part 2, if someone could take a look and help me out I would really appreciate it. Thanks. I am required to implement an array to store, monitor, and retrieve data for camera inventory. [CODE]// Fig 2.4: …

Member Avatar for coil
0
134
Member Avatar for KirkPatrick

Alright well I decided I wanted to widen my learning a bit with java and decided I was going to write a program that had to do with networking side of things. It took me a little bit of time to come up with something, so I asked my friend …

Member Avatar for toseo
0
220
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
146
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
200
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
123
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
197
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
48
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
89
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
174
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
408
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
85
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
121
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
179
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
116
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
218
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
59
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
203

The End.