32,199 Topics
| |
i want to make a project on "project distribution system for any company", for which i need to include database my problem is that where to start ...what to do ....?? can we make this online ..??? | |
Hi, I want to convert a Treepath into a String so that I can use it for IO operations ... How can I do it ? Suppose I have a Treepath variable like this:- [CODE]TreePath path = m_tree.getPathForLocation(x, y)[/CODE] Thanks in advance | |
Plz help to print ******* **1sp** * 5 sp * **1sp** ******* | |
Plz Help me to print in [B]java [/B] a b a b c b a b c d c b a b c d c b a b c b a b a | |
this is two questions: list the order of the threads. i am not sure of the answer but i have included my thinking, thanks. Thread State Priority threadA Runnable 5 threadB Sleeping 5 threadC Sleeping 5 threadD Waiting 5 threadE Runnable 5 ANSWER: A,E,D,B,C Thread State Priority threadA Runnable 5 … | |
hi to all programmer... i have a problem about this program .. an error exist .. [code="java"] import java.io.*; import java.awt.Graphics; import java.util.Random; import javax.swing.*; public class midquiz 2{ // "{" expected public static void main (String [] args) throws IOExeption{ BufferedReader 9new InputStreamreader (System.in)); String name,pass,ans; String pass1="pOLOtAn"; int … | |
import.java.util.Scanner; <Error This ?> [<identifier> expected] class Work3_2 { public static void main(String[] args) { Scanner input=new Scanner(System.in); String carid; int park,pay; int parked; System.out.print("Enter Car ID : "); carid=input.next(); System.out.print("Enter Parking Times : "); park=input.nextInt(); parked=park*60; if(parked <=15) pay = 0; else if(parked >15 && park <=60) pay=20; else … | |
Hi, i was wondering what would be the best way of reading a single line from a text file? For example, i have a file that contains the following data: dog cat bird deer How can i read the 3rd line of the file? I was thinking that i would … | |
hi guys, how can I retrieve the total record count from a database? I mean is there a method like "rst.recordCount"? or whatsoever? thanks... | |
I just Started Java BUT I'M FOR SURE I CAN GET A HANG OF THIS! ive typed these pages out and Cant Find the Problem.. I NEVER START OUT EASY!! SO FAR EVERY TIME I START OUT EASY I LOSE WHERE I AM!! so this is a rotating 2d picture.. … | |
| Hi everyone. So here is my dilemma, I am working on my final project, tackling it one item at a time, so this post is strictly for help deleting a record out of my array. I think I have everything set up right to call to a Method I am … |
I donno why I am not able to get the popup for this JTree. This tree is found almost in all tutorial ? [CODE]import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.text.SimpleDateFormat; import javax.swing.*; import javax.swing.tree.*; import javax.swing.event.*; public class FileTree2 extends JFrame { public static final ImageIcon ICON_COMPUTER … | |
Hi All I am developing a application n having a serious problem. Think we have opened some running applications like text document and after a particaular time i want to autosave data from that application at a default path.Pls try to solve me this problem Thanks in Advance | |
I try to draw line with this code but it never appear say to me the correct way for doing this . This is my code: [ICODE]public class MyMouse extends JFrame { private JPanel mainPenl; private JPanel paintPanel, componentsPaintPanel, areaPanel, areaPaintPanel; String[] buttonsName = {"Line", "Oval", "Rectangle"}; JButton[] paintButtons; MyMouseAdapter … | |
i wish to add another column using code in JDBC.I have one column columnname i wish to add a text type(data type in access) column in the access file my code is [code] import java.sql.*; public class Test3 { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); /* the … | |
Hello every one. Basically i am trying to construct a binary tree. but there's a problem. When i run the program, there is an error. somewhere in the treeInsert method(). I am having difficulty because the root is not node, it is an integer value. then the left and right … | |
Hi. There is something wrong with the codes of my levelOrder method. Can anybody help me identify the wrong stuff out here? By the way, I also have another problem,what are the uses of setters? I teacher require us to put getters and setters but then I am totally confused … | |
We have this program we are supposed to write that takes input from a file with a random word puzzle throws it into an array and prompts the user for a word input or to quit. So far I can get the program to find elements in forward/reverse, up/down, by … | |
Hi, I have written two classes. One is a pixel grabbing class the other allows the user to open and display an image. What I now want to be able to do is use the image which the use opened in the RunProgram class and grab pixels from it using … | |
using dialog boxes : input month in "99" form date in "99" form year = 2009 then display the date in 'MMM 99, 2009' form otherwise, display 'invalid date' Valid date 01-12 = Values for month 01-28 = for month - 2 01-30 = for months - 4,6,9,11 01-31 = … | |
Hey all, ive been searching for a long time and i want to know how am i suppose to display an image that is stored in the database(SQL) in swings in java. i inserted the data in the database as a image datatype(i hope thats right),now the thing is i … | |
I've been trying to build a java program to display the date in a MM/DD/YYYY format with constructors to link the return data, this is the initial sequence and was wondering about my get and set statement; and their format. // Date class with a constructor to // to initialize … | |
hi; I am trying to create a program that will return information stored as long as the word stop is not entered for the employee name, I cant get the program to work can some one help me with this. this what I have so far. // payroll program upgrade … | |
Hey everybody :) So im new to programming and im using the jDateChooser from the com.toedter.calendar package the problem that I am having is that I am not able to get the current date to display ... you have to just select the date yourself ... can anyone give me … | |
So I was going through the course archives for our CS program and looked at some notes and quizzes from a class that was last taught in Spring of 2008 that I will be taking Fall of 2009. It's called Survey of Programming Languages and I found the section on … | |
Hi, i am facing a problem on my java assignment recently which require me to read customer records from a text file and pass it into array. After that i need to change the first letter of the name to uppercase and sort it according to the name. However i … | |
Hello! I have another problem in my binary tree. The countLeaves method does not output the correct answer. Instead of outputting 3, it output 1. I don't know what's the problem on the algorithm of my countLeaves method but I guess it is correct. Can anybody help me solve this … | |
Hi, i searched a lot in JAVA documentation, but couldn't find a buffer API 1) can grow dynamically. 2) the existing content must shift right if i insert a new element in the existing content index | |
hi there, I am trying to learn how to generate xml document having the XSD file that describes the schema of the xml, and need to insert specific values for some of the elements, too. then I need to parse other xml files, I have googled about it, and many … | |
Hi everyone, i'm a beginner in java. i would like to know if somebody couls explain me about the pricing. i don't have more details, it is used for airplane ticket reservation. Or any java project, i would like to test my capacity before searching for job. Thank you very … |
The End.