32,205 Topics

Member Avatar for
Member Avatar for dharajsmith

Hi Friends, I'm afraid I need help again.... I wrote this program, and it won't compile...and now I have to add to it. Here is the program: public class InventoryProgram1App { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("InventoryProgram1App"); { {public class …

Member Avatar for dharajsmith
0
180
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Member Avatar for jwenting
0
176
Member Avatar for Derice

[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the …

Member Avatar for Derice
0
236
Member Avatar for insignia1

Hi, My enquiry involves how jsp handles graphics updates I refer to the technology prior to .NET when ActiveX controls were embedded in web pages. The control (in the form of a dll) was typically downloaded to the browser and executed on that browser. I believe a similar situation exists …

Member Avatar for jwenting
0
138
Member Avatar for nljavaingineur

Hello developers, I have a Product class defined. Then have an applet extending this class. This applet lets me key in: 1.Ordered item 2. Quantity to order then display total amount payable for each item ordered plus the total amount of all items ordered. I am learning to use array …

Member Avatar for jwenting
0
106
Member Avatar for shiyamala
Member Avatar for Derice

I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will …

Member Avatar for Derice
0
199
Member Avatar for Acidburn

Can an object that implements runnable throw an exception to its caller? I ask this cause the run method itself can't throw exceptions so i wonder how it could be achieved. Basically the run method itself can throw an exception but others can't see it (RuntimeException) but can it throw …

Member Avatar for Ezzaral
0
98
Member Avatar for javaStud

I am trying to do a sort of and expiry date so that when an account is created about 3 months later I'll be informed so that the account can be renewed. I don't know how I can do this and to tell you the truth I never used the …

Member Avatar for javaStud
0
134
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Member Avatar for javaAddict
0
227
Member Avatar for ceyesuma

pi = 4(1-1/3 + 1/5-1/7 + 1/9-1/11 + 1/13-.........- 1/(2i-1) + 1/(2i+1) ) I am starting this program to approximate pi. Would someone be so kind as to direct me to information concerning this formula?

Member Avatar for ceyesuma
0
1K
Member Avatar for soccerrm1

Hello everyone, I'm in my senior year of high school and I have just started taking my first programming class. As it turns out, we use Java and then Visual Basic later on. My question is, as a Computer Science major, will I use Java again in college, or is …

Member Avatar for stultuske
0
108
Member Avatar for ashkan3030

I want a very simple player code to playes mp3 or wav files and also want to know where I should put it in my VisualMidlet to be played when I select special part of my choice group? please help me it's so important for me. Thank you all.

Member Avatar for stultuske
0
85
Member Avatar for hidash_in

hi all, i want to open a file from the server system using java pls anyone can help me pls i dont have any knowledge about this pls tell some idea.

Member Avatar for DangerDev
0
115
Member Avatar for darkagn

Hi all, I am fairly new to using Eclipse (or any IDE for that matter) and I am having trouble getting the TPTP Profiler plugin working. I'm hoping that someone out there might have seen this behaviour before and has the fix for it... :) I am running Eclipse 3.3.1.1 …

Member Avatar for andreash
0
137
Member Avatar for ashkash

I have strings in Java where each one is as follows: "Case Number XXX-XXX-XXX" The "XXX-XXX-XXX" part is different for each string. I want to just extract the "XXX-XXX-XXX" portion of each string. I am assuming this is the third token in the string. What would be the best way …

Member Avatar for stultuske
0
228
Member Avatar for rickster11

Alright, I've been working on this one line for awhile, can't quite get it. I need to read all the characters after the "," (comma), ending at the end of the line. I'm guessing I'm just making a simple mistake. Can anyone help me out? [code]blocksArray [numBlocks][1] = Integer.parseInt(line.substring (line.indexOf(","),line.length())); …

Member Avatar for javaAddict
0
101
Member Avatar for wolverine_ramir

is it possible that i could create an array from a class and return the value of that array? and how? how can i access that array

Member Avatar for WhYuLoOkIn
0
98
Member Avatar for shaikh_mshariq

I am developing a program to gather information from the client. I have apache tomcat web server and all the client have one client program to communicate to the server. I want to make this connection http for security reason but i know how can i do this. It is …

Member Avatar for vpcse
0
263
Member Avatar for Shveetis

Hello everyone.. I need to retrieve the number of classes loaded from the MBeans and I am facing problem with the same... Is there any specific package to be imported?? I am unable to work it out though it is really simple.. Thanks in advance...

0
71
Member Avatar for piers

For the guys who helped on the card.java file I did thnaks a lot I got that done. I have now moved onto the next part of that and have to complete this skeleton file. this is the spec for this file. [QUOTE]This class has two attributes: an array of …

Member Avatar for Ezzaral
0
154
Member Avatar for Shveetis

Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a …

Member Avatar for Phaelax
0
106
Member Avatar for fatjoy25

import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.Graphics; import java.lang.Math; import java.applet.Applet; import javax.swing.event.*; import javax.swing.event.*; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Maint extends JApplet implements Runnable,ActionListener,MouseListener,MouseMotionLi stener { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; Point dot[] = new Point[1000]; Point start, end; int dots = …

Member Avatar for Ezzaral
0
98
Member Avatar for King_Walnut

I'm making a vending machine .. and everything's pretty much together, I just have a few problems that I don't have the faintest clue how to fix Firstly, when I choose a snack, the price of the thing comes up fine, no bother. But if I start to pay, then …

Member Avatar for Ezzaral
0
134
Member Avatar for narendra_jntu

I am very new to java . I am having some confusion in java versions. Actually what is java2 java 5 ,jdk1.5 alot of confusion i am having . Is there any special meaning in that. What j2se,j2me,j2ee. What is the difference among them. Is there any special purpose for …

Member Avatar for Phaelax
0
101
Member Avatar for javaStud

I am trying to do a primary key so that each member can't hava the same ID and if th same ID is entered an error is give. Can someone please help me cause I can't do it at all.Thank you. [CODE] static void addMember(ArrayList<GymUser> UserListIn) { String tempUserrID; String …

Member Avatar for javaStud
0
94
Member Avatar for ttamilvanan81

Hai, i am tried to use the SQL Server with Java and Tomcat 5.0 Application Server. I am using the JDBC Driver for Java connecting with SQL Server. I m using SQL Server 2005. But the JDBC Connection doesn't create. I have used the following code for java database connectivity …

Member Avatar for sabindas
0
421
Member Avatar for alejalv

so i wrote this recursion program that uses memoization to calculate the fibonacci numbers. it's supposed to scan a user inputted number, call the method, check to see if the number is in the array, if not store it, ad increment the counter. so i should end up with the …

Member Avatar for DangerDev
0
90
Member Avatar for javaStud

In this method I am trying to locate a user by its ID and then remove it. I am having errors in the second if statment (cannot find symbol-method getID() ). [CODE] static void removeMember(ArrayList<GymUser> UserListIn) { Scanner keyboard = new Scanner(System.in); keyboard.useDelimiter("\n"); System.out.print("Enter the ID no of the member …

Member Avatar for javaStud
0
90
Member Avatar for alejalv

hey guys, i have a project due tomorrow on recursion. the task was to write a recursive program that prints the value of fibonacci numbers and the number of calls made. i wrote the program and it returns the value at the end just fine, but i have been unable …

Member Avatar for DangerDev
0
93

The End.