36,051 Topics

Member Avatar for
Member Avatar for kazmi_salman

Hi there! Need help wid this. i need to change all the uppercase characters to lowecase and vice versa. when i compile it shows cannot find symbol on line 13 and 18. Kindly help. Also tell me how to make the first letter of each word in uppercase. thnx in …

Member Avatar for kazmi_salman
0
110
Member Avatar for jhessica

i got some problems in making codes for our Hotel manangement sysytem, it is my first machine problem that my professor given to me...it was really hard for me!can you help me? tnx...

Member Avatar for BestJewSinceJC
0
89
Member Avatar for rickywh

I'm using a socket server that is based off of java and it allows java extensions to be implemented that allow server side login to be performed. I want to create a signup/login system but I'm struggling with finding a way to validate/filter user input before manipulating with the database. …

Member Avatar for BestJewSinceJC
0
170
Member Avatar for doha786

hi, i have a TextField in myGUI where some data(results) are shown after calculation. I have a 'save' button to save this result into a particular txt file.. i almost done without error....but inside my txt file it shows this kind of things: [QUOTE]ava.awt.datatransfer.StringSelection@157f0dc [/QUOTE] Please anybody help me to …

Member Avatar for BestJewSinceJC
0
200
Member Avatar for sswati.sri

hi, I got exception"NoClassDefFoundException" at the runtime of this java code.My DSN connection is correct,sql server is also properly work,when my project excuted on tomcat.but my beans are not executed properly inly becoz of this connection error.plz give the solution to overcome this problem. [B]In my project i create connection …

Member Avatar for sswati.sri
0
245
Member Avatar for laelzio.mosca

I just started my Java class, and I`m trying to Install Jgrasp from [url]http://java.sun.com/javase/downloads/index.jsp[/url] I choose the first picture, the one that just says java, with the JDK. But after I install it, I still can`t find it in my computer. Can anybody help me. Thanks

Member Avatar for doha786
0
96
Member Avatar for caneko

Split from - [url]http://www.daniweb.com/forums/thread37189.html[/url] (manifest jar files???) i had this error too, i made a mobile application in netbeans, and know that it automatically generate a jar file once built, but wen i run it, that error occurs.. but the the jad file is running ok..

0
42
Member Avatar for TanWS

Hi All, I'am having trouble passing image take from j2me application to asp.net C# webservice. I tried converting the image in byte[] to base64 string and pass to webmethod that receive a string and received the following error. Please help! javax.xml.rpc.JAXRPCException: error 0 during TCP write at com.sun.j2mews.xml.rpc.SOAPEncoder.encode(+248) at com.sun.j2mews.xml.rpc.OperationImpl.invoke(+40) …

0
62
Member Avatar for bd338

Hello everyone! I use this method: [CODE] private void drawRectangles(Graphics g){ final int ROWS = getHeight() / 75; final int COLUMNS = getWidth() / 75; for(int i = 0; i < ROWS + 1; i++){ for(int j = 0; j < COLUMNS + 1; j++){ int x = j * …

Member Avatar for musthafa.aj
0
82
Member Avatar for syum

Hello, I have been working on file transfer in java using http POST. I'm able to to send text files to a server but I'm getting difficulty in sending binary data, like images, to a server. My main problem lies on how to use InputStream.read(buf, 0, dataLength). Here is my …

0
57
Member Avatar for iamsmooth

So if my program exits on a certain condition, it has to exit with a 1, and if something else, it exits with 2. So I want to use junit to assert that the exit code is 2, but I don't know how to do that. I also heard there …

Member Avatar for musthafa.aj
0
127
Member Avatar for mhina

[code] import javax.swing.*; import java.io.*; import java.io.InputStreamReader; public class Weight2 { public static void main(String[] args)throws IOException { double cost; double tax; cost=Double.parseDouble(JOptionPane.showInputDialog("Enter purchase amount")); double payment; payment=Double.parseDouble(JOptionPane.showInputDialog("Enter amount tendered")); BufferedReader CHANGE=new BufferedReader(new InputStreamReader(System.in)); tax=Double.parseDouble(CHANGE.readLine()); displayTax(getTax(cost,tax)); setPayment(payment); setTax(tax); setCost(cost); displayCost(getCost(cost,tax)); System.exit(0); } public static double getTax(double y, double x) { …

Member Avatar for musthafa.aj
0
155
Member Avatar for kiryoku

how can i remove an element in my array without using special commands like hashmap....i have made many parts of it...just the delete part... [CODE]import java.io.*; public class Super { public static void main(String args[])throws IOException { String temp; int num[]=new int[10], choice,index,value,i,search,found=0; BufferedReader in; in = new BufferedReader(new InputStreamReader(System.in)); …

Member Avatar for BestJewSinceJC
0
220
Member Avatar for nicklbmx

I need to figure out how to find the max number of an array by using a while loop. I have searched all over but do not understand how to do it. If I could get any help at all that would be great. Thanks! Anyway the findMax method is …

Member Avatar for BestJewSinceJC
0
94
Member Avatar for clisen

Hey everyone, I'm currently writing a simple text based MUD in Java for learning purposes. Currently I'm in the process of coding a Login class that prompts the user to enter a user name and password in order to access the account. Right now the problem lies in opening a …

Member Avatar for clisen
0
146
Member Avatar for doha786

hi, i m just wanna open/explore/view inside of any txt or doc file from folder by using JFileChooser... here i made the code, pls tell me what need to add to open the files.. [CODE] import java.io.File; import javax.swing.JFileChooser; public class OpenFile { public static void main(String args[]) { JFileChooser …

Member Avatar for peter_budo
0
117
Member Avatar for benregn

Hi, I need to create a time delay before I call a method. [CODE]public void brewDrink(CoffeeMachine coffeemachine) { try { coffeemachine.displayDrinkBrewing(); Thread.sleep(7000); setDrinkReady(coffeemachine); } catch (InterruptedException ex) { } }[/CODE] This doesn't work, the method isn't called. Any help or pointers are welcome!

Member Avatar for verruckt24
0
105
Member Avatar for P00dle

I want to remove the JOB node with JOBNAME "One" from the following file: <SETTINGS> <SYSTEM> <VERSION>3.1<VERSION> </SYSTEM> <JOB> <JOBNAME>One</JOBNAME> </JOB> <JOB> <JOBNAME>Two</JOBNAME> </JOB> </SETTING> The code that is supposed to remove it looks like this: [CODE]try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); Document doc = docBuilder.parse(new …

Member Avatar for P00dle
0
5K
Member Avatar for checho

Hi i have the next task to solve. [I] A bank holds different types of accounts for its customers: – Deposit accounts – Loan accounts – Mortgage accounts Customers could be individuals or companies. All accounts have customer, balance and interest rate (monthly based). Deposit accounts are allowed to deposit …

Member Avatar for checho
0
167
Member Avatar for sweetyyyy

how we can send binary sms to any mobile particularly nokia mobile from pc using smpp...

Member Avatar for verruckt24
0
220
Member Avatar for palanisaamy

I am trying to write a java program for a SNMP,DNS using UPD datagram. I am trying to think of how to start. Anyone has any suggestions? Please advise

0
42
Member Avatar for guravharsha

Hi I am trying to genarate report in java. my basic requirement is like: 1. i have to print sales invoice in .txt format. 2. In application, user will select sales invoice no in drop down list. after clicking print button, user can show his invoice . 3. invoice contain …

Member Avatar for JamesCherrill
0
195
Member Avatar for Namrata.Bibodi
Member Avatar for verruckt24
0
121
Member Avatar for jodysmith

Hello, Nice post man...but do you have nay link for the java monkey engine that is used for creating games?

Member Avatar for peter_budo
-3
76
Member Avatar for indu_ss4

Hi! i need to insert a new element in an existing xml document. for example, [code=xml] <details> <person> <name>Anu</name> <email>abc@yahoo.com</email> </person> <person> <name>thara</name> <email>xyz@gmail.com</email> </person> </details> [/code] In this document if i want to insert another element using Xpath, say,<publisher> in <book> node, how to insert it. I'm using DOM …

Member Avatar for AbhikGhosh
0
7K
Member Avatar for plobby

So I have a web audio stream that I would like to capture. What I want this program to do is grab the stream, record it and write it to a file (mp3, wav..whatver codec that is easy) and create one hour intervals of the audio stream. So every hour …

Member Avatar for kvprajapati
0
88
Member Avatar for salman4u

Hello, I want to create a sub domain, when the user registers on my site. How can i do that in java? Any help would be appreciated. Thanks in advance :)

Member Avatar for jwenting
1
55
Member Avatar for Neerajavi

hi friend can you tell me how to create servlets and how we can deploy it on the apache web server.

Member Avatar for jwenting
0
132
Member Avatar for AliAliAli333

Hi im just wondering how i could improve this to make it secure from either the jsp file itself or external java files. [CODE] <html> <head><title>JSP Page</title></head> <body> <jsp:useBean id="user" scope="session" class="shop.UserBean" /> <jsp:useBean id="dataFactory" scope="session" class="data.factory" /> <% String userName = request.getParameter("userName"); String userPassword = request.getParameter("userPassword"); user.setLogin(dataFactory.getUser(userName,userPassword)); user.setUser(userName); if …

Member Avatar for jwenting
0
97
Member Avatar for dmanw100

Hello all, I have created an RSS object and I would now like to parse out the descriptions of the children. My knowledge of RSS is extremely limited so pardon me if I am incorrect in explaining what I need. For example, I am connecting to [url]http://rss.cnn.com/rss/cnn_topstories.rss[/url] and I would …

Member Avatar for dmanw100
0
202
Member Avatar for rwildman23

I am a adult returning student in Java and would really benefit from having someone work with me on exercises to further my understanding of the material. Anyone interested in helping would be greatly appreciated.

Member Avatar for rwildman23
0
148
Member Avatar for cascade3891

Hello Python community, I've just finished building an app with Python and I'd like to share my experiences and get some feedback. This was from scratch (no code templates) all the way to compile and distribution on a Windows environment. Now all my colleagues at work are using the app …

Member Avatar for vegaseat
0
1K
Member Avatar for Alpdog14

I was wondering if someone can help me with how to convert my code so that it converts the cents to dollars and also round to the nearest cent: [CODE]public class Subscription { private int price; private int length; public Subscription(int p, int n) { price = p; length = …

Member Avatar for BestJewSinceJC
0
11K
Member Avatar for mamameanslove

I'm currently taking Java I and I have to write a program that reads 5 integers and determines and prints the largest and smallest numbers without using an array. I have to only use the if statements. I can't figure out how to make the if statement apply to 5 …

Member Avatar for BestJewSinceJC
0
2K
Member Avatar for Fbody

Since [URL="http://www.daniweb.com/forums/thread251025.html"]this thread[/URL] was solved/closed about 2-weeks ago, I have not received any subscription messages at all. During that time, I should have received about 15. Did the mail server somehow swing from one extreme to the other? Did the server's IP or mail address change since then? Do I …

Member Avatar for Fbody
0
131
Member Avatar for jemz

hello please help me on this i make a simple program that inputs the first name and family name and age, and this will display to the table ...can you help me how to delete the save data on my JTable the one that i inputed ...thanks in advance hoping …

Member Avatar for jemz
0
34
Member Avatar for jemz

hello can you help me please... i have a button print and i dont know how to make the code that will print all my data in my database....please help me how to make this print code ..hoping for your positive responds.

Member Avatar for thomas_naveen
0
120
Member Avatar for mamameanslove

I have written my program to prompt the user to enter an integers and then print if the number is odd or even. It says build successful, but will not prompt for the information to be entered and print the data. I use Netbeans with the JDK bundle. Please help. …

Member Avatar for BestJewSinceJC
0
121
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Member Avatar for feoperro
0
205
Member Avatar for feoperro

Hi, I know there is an XML/Xpath topic already, but how about a SOA topic? Users can then post questions on Oracle SOA, Netbeans SOA, etc... Thanks, -Ashton.

Member Avatar for ~s.o.s~
0
105
Member Avatar for kendaop

Hello all! I thought I was finally getting good at this "Java" thing, and then someone suggests to me that I use a singleton and factory class. I'd never heard of these before so I set off googling it. Now, I get the gist of singleton and factory classes, but …

Member Avatar for JamesCherrill
0
155
Member Avatar for gunjannigam

I am using Ubuntu 9.04. I want to shutdown my PC using Java, when some Event is called. Please suggest what could be done.

Member Avatar for gunjannigam
0
105
Member Avatar for ElieM

from the search I made I understood that I must declare the class in a package then put it in WEB-INF/classes. and call it from the jsp page. SO. my class is: package x.com; import java.io.*; [code]public class X { public static void main(String[] args ) throws IOException { File …

Member Avatar for javaAddict
0
664
Member Avatar for purushoth123

kindly please tell me how to connect from java to ms access, sql,oracle and so etc . with example

Member Avatar for peter_budo
0
173
Member Avatar for Snowdiddy

Hello to all my fellow IT people! I have two questions! I would like to start learning how to program! Is Java a good beginners language to start with and if it is not what is a good language? My second question is if Java is a good language then …

Member Avatar for wee_shark
0
122
Member Avatar for bkafroboy69

public double getThirdSide() If the triangle is not valid, this should return 0. Otherwise it should return the length of the third side of the triangle. i cant figure out how to put this into coding any help thanks [CODE]public class Triangle { //PART 1 // a triangle is defined …

Member Avatar for darkagn
0
100
Member Avatar for wee_shark

Hi all, I'm new to java applets. This is basically my first bigger applet. It works 100% fine when I run it in the applet viewer. As soon I start it in a web browser it stops working half way through. The code below is a short version of my …

Member Avatar for wee_shark
0
97
Member Avatar for dubdub

So I am working on storing inorder traversal indices associated with every node in a BST (So if I add BAC, then the inorder index of A = 0, B = 1, C =2). The thing is that whenever you add a new node to a BST, you must recompute …

0
46
Member Avatar for dalymiddleboro

/** * Simple math application using a scanner input * @version 1.00 2010/1/26 */ import java.util.*; import java.text.*; import java.io.*; public class mathopr { public static void main(String[] args) { double num1,answer1,answer2,answer3=0; String myname; String reply; char replyChar=; Scanner input = new Scanner(System.in); DecimalFormat df= new DecimalFormat("00.00"); while (replyChar=='y'){ System.out.println("Please …

Member Avatar for AndreiDMS
0
87
Member Avatar for doha786

hi, i m facing a small prob in GUI, need to save my output to a particular folder. below this code showing the square of any integer in TextField named: "resultField". i've a button "save" that need to save the result from that TextField, suppose in my "c:\Repository " folder …

Member Avatar for BestJewSinceJC
0
156

The End.