32,204 Topics
| |
Hi friends, please help me to solve this. i need to read the elements from xml file.I am using sax api. My xml looks like this :-> <test> <test1>hello1</test1> <test2>hello2</test2> <test3>hello3</test3> </test> In my startElement(...){ elementName.equals("test"){ //I need to get all the elements inside the test element.ie test1,test2,test2.with out going … | |
can we write link list program in java, if yes then please give some tips so i can write that program | |
hi , please , i have problem and i need help ......................... in calendar i want to get [U]name of day [/U] from it how ? if user select 21/9/2007 i want to get name of day "friday" to use it in anther funcation :( | |
Hello All, I am trying to parse an ArrayList of Strings into an ArrayList of integers. Does anyone have any opinions on how this should be done? I can parse one element, but parsing the entire string where I am having problems. Any suggestions would be great. Thanks | |
how to read created/modified date of a file from a java application | |
Good evening everyone. Im now going to do my final year project and its about creating mobile application for a university student.I would like to use the java platform to create the application. I need some advises and also the right tools to create the application. So programmers i really … | |
I cannot make my code loop.... Anyone please help! /* PRG420 Week 2 Individual Project Amanda Cornwell September 10, 2007 MortgageProgramCornwell.java This program will calculate and display the monthly mortgage payment amount, given the amount of the mortgage, term of the mortgage, and the intrest rate of the mortgage. Next, … | |
Hi, i want to get an xml file from a web application. what are the procedures to access the file. | |
This is a lab I am working on. I think that I am on the last step. My problem/question is highlighted in bold. 1. Create a constructor that allows you to specify the 2 endpoints of the line being created. Leave the original constructor alone. Your program should have 2 … | |
hi everyone i have a very a very basic question in mind .. i wanted to discuss .. Difference Between these? String s1= new String("java") ; String s2="java" ; and also what for 2 different classes are there in garbage collection? System.gc and runtime.gc ( both are doing the same … | |
Hello all just signed up and this is first thread.I am currently learning java and as a means to this i am writing the mastermind game in java.Can anyone point me in the right direction regarding getting the board facr on the grid and manipulating it. cheers | |
can we develop a applet sot i can drag and drop on the same applet | |
I having a small problem with the output on the Your CD's side, they are only viewable if I double click inside the pane, then they show up, almost like the pane is on top. How can I fix, I have tried moving things around and changing the TextArea to … | |
Can anyone provide any suggestions on how to copy an ArrayList of integers to an Array? Thank you | |
For my proje i want to remove a unwanted paragraph in a text file. For example my text file may have acknowledgment in between sum useful data so i want to remove the acknowledgment paragraph fully...can anyone tel how to do tat | |
Hi i am having trouble with a html web page. I am trying to add a Java chat program to my web page. Can i please get some advice Thanks A51himself Nigel Chan | |
Hello everyone, I am wondering if I want to debug JNI application (upper layer Java and lower layer C), are there any tools to debug through Java code to C code and return back from C code to Java code. I am using Eclipse. But I do not find such … | |
Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish … | |
Hello! I am trying to add new data into a database. What is the mistake in my code? I got the error message such as "general error". [code] import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class AddRecord implements ActionListener{ private ScrollingPanel fields; private JTextArea output; private Connection connection; … | |
Hi. Please help. I can't seem to get this program to run. Tips.java Modify the exercise shown below so that it will loop, calculating a new tip each time until the user enters a value zero or smaller for the amount of the bill. Make sure there is a nice … | |
[code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] package db; import java.sql.*; import java.sql.DriverManager; import java.sql.Connection; /** * * @author James */ public class DBConnection { static String dbdriver; static … | |
I made more progress ong CreditCard program I am trying to insert a row into mysql from a creditcard account number. Could I get some feed back on why it as a problem with the url it looks like it wants to insert a record. [code] package creditcard; import db.DBConnection; … | |
I have a program that will find the certain ammount of fibonacci numbers. And now i have the question which is the best code for counting time in fibonacci algorithm? I have to find out how many numbers can my algorithm count in 1 minute? the code: [code]//rekursiivne algoritm public … | |
Can someone give me pointers on what needs to be done to get these classes to INSERT INTO acctData VALUES (99999999, '2000-7-3',30,'food',50); a deploy.txt is included containing the following. thanks [code] package creditcard; import db.DBConnection; import java.lang.Object.*; import java.io.*; import java.sql.*; import java.util.Date; import tio.*; import java.io.File.*; import java.io.IOException; class … | |
hi guys, i wonna to code simple program that could control the system threads in the system by block or start a new job, how to do this in java, or from where i can start to acheive this. thx, | |
Exuse me gys, I am a biggener in java and I would like to know how to use the data file in java such as taking data from the file and printing the data in new file is there any class library carring out this task please reply to me | |
Hey everyone. This is pretty lame of me having to do this, but I haven't done Java for about a year and this algorithms class I'm taking assumes we remember all the details. Anyway, I'm trying to implement a method from an interface in another class's main method. Here's the … | |
I would like to return a connection to a Bean to make statements to mysql database "ccdb" I'm really not sure of [code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] … | |
Hello all, I wondering if anyone could tell me how to go about extracting a single field from a text file. The file is all follows: Jeff 8.00 8.9900 hadk Kim 234.0 234 hak Him 444.8 1.11 john... How would I extract only the first column without using tokenizer or … | |
(I'm not even close to being sure that this is even a valid approach to what I want to accomplish. Still, all input is welcome. What I was trying to do was create an applet that reads): "Please pass the butter." A quote by jack padron ------------------------------------------- Can you think … |
The End.