35,618 Topics
![]() | |
Hey everyone, It's 3am and I'm pulling my hair out trying to get this to work. I'm reading data from a file that looks like so: [QUOTE] James 20 John 30 Peter 25[/QUOTE] and I am storing it in an arraylist then outputting the data. It outputs exactly as it … | |
I have to create a class called Day that will carry out certain functions. One of the things that it needs to do is it needs to be able to calculate and return the day by adding certain days to the current day. For example, if the current day is … | |
Hi, I need a solution for implementing a rating system. Where users can rate movies in my application and display the total results for each rated movie. | |
[code=Java]class Grade { public static void main (String args[]) { final int score = Integer.parseInt (args[0]); final char grade; if (score >= 90) { grade = 'A'; } else if (score >= 80) { grade = 'B'; } else if (score >= 70) { grade = 'C'; } else if … | |
i have a homework. do a program using java that will ask a user to input a infix expression , and the program will convert it to postfix expression... help!! | |
Hey everyone, i just completed a Java program that writes PDFs for me using the famous iText library. Now it's my task to do the same for RTF -- but i just couldn't find a suitable library for that. Now some of you might say: "I thought iText supports RTF, … | |
Hello Folks., Im new to this forum and just trying to learn Java. I have a program Im trying to write in Java. [B]its about managing flights and booking flights for customers and also Alter flight should customer wish to change their mind not travelling.[/B] Im kinda confused on how … | |
Hello, I want to check uniqueness of id at the time of entry only.And I want to give message to the user at that time only.How to do this? | |
![]() | The code below is a simplified excerpt which compiles & runs, just to show the problem I encountered. I tried to use BoxLayout in the ColorPanel method, but the JLabel "swatch" was not visible in the frame at all. I found that I can get the effect that I wanted … ![]() |
Folks, I am using xsl and xml for Report generation. In XSL I have created a table which has 6 columns and say 7 rows, in 6th column of each row I want to display multiple rows again. For this I am thinking of passing new line character after particular … | |
Okay, I am having more difficulty with my Java class again. My professor assigned us a 2-D chart program... This is the output he wants: This program displays the annual cost of gasoline for different mpg and price per gallon of gas assuming 18,000 miles driven annually. MPG 1.50 1.75 … | |
Hello there, This is my first post. I want to make a currency converter program in Java and for that i want live/real-time exchange rates. So can you please tell me how can this be done. I have full time net connection, so thats not a problem :) | |
please can u tell me how to create a software that can be used to send a email? | |
Hi, I am new to J2EE and i have a requirement to convert the image logo in the banner of the page to an image logo link. How do i go about doing this, and where do i need to do it? The JSP of my header where i found … | |
I have tried Compression & Decompression of a file using GZIP & ZIP in java.It worked well. Now I need to do it for a directory. I came to know that ZIP is useful for compressing more than one file. I dont know how to proceed. Please tell me how … | |
I now have teo classes the first one contains this [CODE]import java.awt.*; import javax.swing.*; class fm1 extends JPanel { public fm1() { this.setLayout(new GridLayout(3,0)); Dimension D1 = new Dimension (300, 300); JLabel fruit1 = new JLabel(); fruit1.setPreferredSize(D1); fruit1.setOpaque(true); this.add(fruit1); JLabel fruit2 = new JLabel(); fruit2.setPreferredSize(D1); fruit2.setOpaque(true); this.add(fruit2); JLabel fruit3 = … | |
Is there any API to parse Word document and store it in database. For e.g. Say following is a content of word document. Name: ABC Address: XYZ Telephone: 12341234 Then from above document data extracted and stored in the table say Person_Details (Name, Address and Telephone). Can any one help … | |
[CODE] class OrdArray { private double[] a; // ref to array a private int nElems; // number of data items //---------------------------------------------------------- public OrdArray(int max) // constructor { a = new double[max]; // create array nElems = 0; } //---------------------------------------------------------- public int size() { return nElems; } //---------------------------------------------------------- public int find(double … | |
hey guys i am new to java...well data structures, i have this assignment, where we have to basically accomplish radix sort. The first method is building a master linked lists. i have not even started can anyone help with me with that package sorting; import java.io.*; import structures.linear.Node; /** * … | |
Hi, Can anyone help me how to connect cloud garden(JSDK) with Netbeans... Pls help | |
[code][code=java] public class LineSeg{ // these are the attributes of a LineSeg object private Point end1; private Point end2; private double length; // the constructor public LineSeg(double x1, double y1, double x2, double y2) { end1 = new Point(x1,y1); end2 = new Point(x2,y2); this.length=(double)(Math.sqrt((x2-x1)**2+(y2-y1)**2)); } }[/code] | |
Hello EveryBody, I am having problem in uploading servlets in my server. The servlet works fine in my locanhost. But when i upload it it does not work. Can anyone help? | |
Hi im really new to jsp. any body can help me in creating a thread of my own. i have creadted the Db(Mysql) and data is inserting in to db. i dont know how to display the threads according to the user login can any body help me out???? | |
My java app is doing a POST with Multipart format as thetype for a certain file size when uploading a file. The application server is checking the size and returning results, but the Web server is giving a page not found with the results. It appears to be trying do … | |
hi, i suppose to make simulation to cellphone. when press any digit ,it should appears on the display textfield to form a complete number. and when press the send button a message with"redialling+ the gigits pressed" appears on the textfield also when press redial button a message with " redialling+ … | |
Im trying to have put in a list of 10 CD's (with informatiom, not just blank ones) that will ready be in the list before the program even runs. I obviously am new to this, so i dont know what to do. Any help? THANKS! This is my program this … | |
Hi there. As I said, I'm a newbie to programming and writing code. I'm at home working on a lab project but keep getting a compilation error and I don't know how to fix it. Any help would be greatly appreciated. Here's my code: public void add(int i) { int … | |
I have to write a program that mimics a digital clock w/ seconds, minutes, and hours. I'm sure I can get the displays working on my own and everything. My concern: what is the most efficient way to check the time? Should I just do Thread.sleep for 1 second then … | |
I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated. | |
how do i create java code that randomly assign numbers to letters, sum them, display them and store them in a database |
The End.