31,001 Topics

Member Avatar for
Member Avatar for PL.P27

Hi everybody. I appreciate any help given, and appreciate your time. I'm currently doing a program that tests if the input is a palindrome or not. I have already done the reversing part of the program. But was wondering how I could possibly check to see if the input word …

Member Avatar for jwenting
0
142
Member Avatar for MxDev

hi guys, i asking if somebody can tell me what is the build number of software, and why it exist ??? thanks

Member Avatar for jwenting
0
120
Member Avatar for edchabz

I have a good idea what I am supposed to put but I can't seem to get it right. I have two different files, Server.java and Client.java. I want Client.java to call a method in Server.java. This is what I have figured out so far. public class Client{ public static …

Member Avatar for edchabz
0
137
Member Avatar for CBLACK10

I am working on an application that has a menu window with 2 buttons for menu options. I would like the application to function in the following way. When a menu option button is clicked, the menu window disappears and the window for the menu selection appears. When the close …

Member Avatar for new_2_java
0
105
Member Avatar for -EquinoX-

can someone help me to develop a pseudo code that will allow me to find the min and max of an array recursively??

Member Avatar for jasimp
0
60
Member Avatar for new_2_java

Hi all, I am writing my first servlet, and facing some troubles. I have my servlet: [code] package com.example.servlet; // other imports... public class Hello extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ res.setContentType("text/html"); PrintWriter out = res.getWriter(); String name = req.getParameter("name"); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello, " + name …

Member Avatar for new_2_java
0
547
Member Avatar for Mr.UNOwen

Hello, I'm creating a game in Java and in the game there will be short videos played in between the levels and I need to know what classes to look at if I'm going to load, adjust volume, play and terminate the video. Also the way I have the program …

Member Avatar for Phaelax
0
63
Member Avatar for Shveetis

Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance..

Member Avatar for Shveetis
0
80
Member Avatar for kenus

'javac' is not recognized as an internal or external command, operable program or batch file.

Member Avatar for vimalkv123
0
133
Member Avatar for arunpawar

We import the packages from java.somepackge.*; or javax.package.*;package can be anything from javas own api or other external api. My question is what is difference between java and javax?

Member Avatar for javaAddict
0
63
Member Avatar for shaikh_mshariq

Hi to all the posters. I have come up with new problem using crimson parser to parse an xml file. I am creating xml file using crimson parser and DOM object. I have created a xml file using xmldocument object and i am setting nodes value according to tag name …

0
78
Member Avatar for ndrux

import javax.swing.JOptionPane; public class cafe2 { public static void main(String args[]) { String name,ch; double price = 0.00; double sum=0.00; int cho=0; name=JOptionPane.showInputDialog("Enter Customer Name:"); do{ ch=JOptionPane.showInputDialog( " Food Name "+ "\n-----------------------------------------------------"+ "\n1) French Fries $ 3.50"+ "\n2) Fish and Chips $ 5.50"+ "\n3) Goat Cheese Pizza $20.70"+ "\n4) Chicken …

Member Avatar for ndrux
0
130
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
178
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
175
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
135
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
104
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
197
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
130
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
221
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
107
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
84
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
114
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
154
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
100
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
97

The End.