32,204 Topics
| |
Hi, Can any one say what is hte difference between contains and containsValue in hashtable. Thank you, With Regards, Prem | |
Hi, all Can anybody tell me how to get the current date in a java program? And, I want to insert the date into a database with a date/time format, is there any difference from insert a string? thanks for reply | |
Check my program....i want a decrement of 10 for the value of K, how can i do this ? [CODE] public class arrey { public static void main (String [] args) { int i, j, k = 100; int [][] TwoDArray; TwoDArray = new int [4][]; TwoDArray [0] = new … | |
HEEELLLLPPPP!.... i am stumped.... i am a student and have access to the server at my college.... on this server they have installed javac and i am running my java on vi text editor in a virtual server. okay i can import all kinds of things... but i cant import … | |
| |
if i want to dereference an object(using delete operator) of DERIVED class which is being referenced using a BASE class reference, which destructor would b called automatically?? BASE class destructor or DERIVED class destructor?? | |
how to put a command using only 2 letters the Y and N? and then prints out a text saying please input y and n only ex: [CODE]System.out.print("DO YOU WANT TO TRY AGAIN [Y/N]? ");[/CODE] | |
i have this program...the color program..but i have a problem on converting a string to character. anybody can help me..thanks.. below is the java code import javax.swing.JOptionPane; public class ab{ public static void main(String[]args){ String a; a=JOptionPane.showInputDialog("Enter color: "); // I need to convert the variable a from string to … | |
Hi all, I'm working through the java tutorials on sun.com and trying to create a card class and a deck class which populates with card objects. Having trouble getting things running and I'm not sure where the problem is, pasted below are the card class and deck class, I'd appreciate … | |
Hi Guys , how can i parse java script.I have a script as follows [code] test.AddQuestion( new Question ("com.scorm.golfsamples.interactions.etiquette_1", "When another player is attempting a shot, it is best to stand:", QUESTION_TYPE_CHOICE, new Array("On top of his ball", "Directly in his line of fire", "Out of the player's line of … | |
I've been coding an applet using Java 1.4 under the (possibly/probably misguided) assumption that newer JRE's are backwards compatible, so my applet could run on a wider array of target systems without requiring users to update their JRE. Is this a valid assumption? I'd like to use the new language … | |
Hi I am new to this forum and want some help with some Java code. I am creating a Three Tier Structure and below is the GUI class of the project. The problem is I can't make it work to insert into the Database file. Could someone please help me … | |
I'm currently learning java, and im having a problem understanding what's going on when we use a constructor when inheriting from a class that already has a constructor. The best would be to just throw in my example. I have 2 classes, "Person" and "Employee". "Employee" is inheriting from "Person", … | |
My bad, please delete. | |
I want easy algorithm with minimum order to get the sub-rectangle with the largest sum in an array for example array as a input 0 -2 -7 0 9 2 -6 2 -4 1 -4 1 -1 8 0 -2 sub-rectangle 9 2 -4 1 -1 8 maximum sum of … | |
Hello, I am little stuck with . It is not populating the errors for me, rather it is loading the page without . Attaching my code: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "struts-config_1_2.dtd"> <struts-config> <display-name>CSV File Upload</display-name> <description>CSV File Upload</description> <form-beans> <form-bean name="FileUploadForm" type="example.struts.FileUploadForm"> … | |
Hi every one i would like some help on my project for software development that will mark my end of year and am really trying to figure out what i should work on. Any one please with cool ideas help me. It should be in java and Databases we have … | |
I just got my java project (beginner). . and its like this Output: What is my grade in Java? ([I]part where you input a grade[/I]) My grade in Math? ([I]input math grade[/I]) ([I]the next screen shows the grades i input, gets the average, then the shout out of my grade[/I]) … | |
[code=java]package cookie; import javax.servlet.http.Cookie; public @interface getNextCookieValue { cookie = new Cookie("mycookie",""+getNextCookieValue());) }[/code] please help me I don't know how can I create annotation of the structure in java servlets. The code gives an error as: Multiple markers at this line - Syntax error on token "cookie", VariableDeclaratorId expected after … | |
Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in … | |
I used the following code to download HTML files and subtitle files over the Internet. But when I give the url of a Youtube video, the download stops very quickly and though some file IS downloaded, it doesn't open. Why ? [CODE]class read { public static void main(String aa[])throws IOException … | |
Hi, I have a printable class that needs to print some text only on 1 page. The thing is that when I hit print the printer prints 3 pages: page 1 - with correct content page 2 - empty page page 3 - page with content translated some how then … | |
steps to configure php/java bridge on xampp 1.7 on windows with all the files location (if possible screen shots too) | |
Greetings! The below is an example of a text file from PDB. ATOM 2 CA ASP E 423 [B]-50.931 46.011 -16.062[/B] 1.00153.24 C ATOM 3 C ASP E 423 [B]-51.314 44.692 -15.381[/B] 1.00152.70 C ATOM 4 O ASP E 423 [B]-52.175 44.673 -14.497[/B] 1.00153.08 O ATOM 5 CB ASP E … | |
I have a DVD inventory record program that creates a DAT file if none exists and then stores the user input. As long as the program is running the user may then advance one record at a time (forward or back) through the files, skip at anytime to the first … | |
Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance. | |
Hi Everybody, Is there a way to have a picture of the 3 or 4 sq. pixels you're mouse is hovering over appear in the bottom of the screen? Thanx. | |
I am working on a code to read N user input numberb and then display the largest and the smallest of them. The inesgers have to fall in between -999999 and 999999, I have been tinkering with this for a few days now and can't seem to figure out how … | |
hello frnds....i am mukul working on a java project using mysql database and swings in netbeans ide can anyone tell me how to retrieve data from mysql and show tha data in JTable......in netbeans....... i know how resultset and statements commanda.......but dont know how to show that data in JTable |
The End.