32,199 Topics
| |
I have 3 text fields and a button, and when a user presses the button, I would like to check if he has inserted integer values in the first two of them. If yes, then the sum of both of them is shown in the third one. If not, then … | |
i have to filter the user input in the comboxbox under my "search tab" eg. if the user were to type "y", "YAHOO" or any words related to "y" will appear on the filter list and allow the user to select. anyway my combobox values are taken from text file … | |
Hi clecer people! I am new can i have a little help here please. I wanted to mcuh the name and password of employee, entering and exiting the building ( it works but not completely) The task Implement a system that restricts which members of staff that have access to … | |
Thanks for the help in advance. So basically I have some Strings (lets call these Strings "Numbers") that looks like this. [CODE] Numbers1 = " 3.74343E-01 4.82245E-01 1.95635E-01 -1.05565E-01 3.81702E-02" Numbers2 = " 2.23965E-01 1.29925E-01 4.08791E-02 -4.21790E-02 -1.21410E-01" Numbers3 = " -2.73593E-01 8.63407E-02 -1.37682E-01 -3.01382E-01 -1.51439E-01" [/CODE] My program is … | |
i've just 3 days to give the full program to the doctor but i've a problem and i'm tired to find this problem could anyone help me to fix it please this program is currency converter the code is here: import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.Icon; … | |
So I have this question: Write a program that creates a constant MULTIPLE of type int. Set MULTIPLE to 3. Output the times table between 1 and 10 for MULTIPLE. Modify the program to output the times table of 7. And so far I've written this: //5. - Homework class … | |
I'm using the Scanner class and need help in setting up get and set methods for where the program asks the user to enter a first name and a last name as String type.( 2 methods, 1 for first, 1 for last) I need to know how to store the … | |
Hi All! Can anybody please tell me that how closely Android Application Development is associated with Java. That is, is it possible for a person working in Android Development to work on Core Java or J2EE oe J2SE ever? Let me make my question a bit more clear: " As … | |
Here is a code for writing a text file from console but i have problem regarding its portability. [CODE]import java.io.*; class KtoD { public static void main(String args[]) throws IOException { String str; FileWriter fw; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); try { fw = new FileWriter("test.txt"); } catch(IOException … | |
hi , I am new to java.Can anyone what is the different between the following code for the java String Declaration. [code] import java.io.*; import java.util.*; class Sample1 { public static void main(String args[])throws IOException { String str="First String"; String Str1=new String("Second String"); System.out.println("The variable is "+str); System.out.println("The variable is … | |
Hi..can anybody please explain to me how to implement the importNode method to import an element from an xml to another xml with an example. | |
How do i write to a text file [B]WITHOUT[/B] deleting the current information in it? basically write on the next available line. | |
I am at my wits end with this code. I've been working on it for at least 2 weeks and the same error appears. The error, itself, is the incompatible types error. It appears underneath the division symbol. [CODE]// DivideByFive.java - This program determines if a number is divisible by … | |
Hi, I'm unable to change the date format in java. I'm given the code as follow. [CODE] java.util.Date date = new Date(); [/CODE] But it displays like july 17 13:01:43 GT 51:25 2010 But i need only this format july 17 13:01:43 2010 Can u pls help on this? | |
Hellooo All : I want to start my final year project on VPN applications using Java , I'm still wondering what can an application I can create , so can anybody provide me any topic , Thx in advance | |
Here is what I have so far: [code] package payrollpart2; /** * * @author Darryl */ import java.util.Scanner; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { Scanner input = new Scanner(System.in); //declare program variables String employeeName; double hourlyRate; double … | |
Hi guys, I'm a grade 11 I.T student and I need help.I have to create a networking application in Java,something like Mxit or Facebook, just a simpler version.I have no idea what to do and my teacher is too stuck-up to help me.All I have is a GUI.Can someone please … | |
i try to compile and run seems like work perfectly but once i click the "add" button(something like save) error come out i dont know what problem with the codes [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* … | |
Hi, I need to get the current date without using [B]any packages or any construction methods[/B]. Simply, i want to get the current date by convert date to string. I used this code. Please find the below code... [CODE] String getDate = new SimpleDateFormat("yyy/MM/dd HH:mm:ss"); return getDate.format(date); [/CODE] But, i'm … | |
Hello, I am quite new to swing, and I was trying the JFrame component, when this exception occurred , just when I tried to instantiate the JFrame object. It says the following: [code=java] Exception in thread "main" java.lang.NullPointerException at JFrameDemo.main(JFrameDemo.java:8) [/code] and line 8 is the following [code=java] JFrame frame … | |
How do I create a method header that takes a string as an argument and returns the characters in the argument as a set. Please only reply if you know the answer. Thanks. [CODE]public class Food { private TreeSet<String> myList = new TreeSet<String>(); public Food() { super(); myList = new … | |
i am trying to get the input the info so when the choices are chosen and submit is clicked the info is seen for the flower order but getting errors. if you read it you would probably get what i am trying to say but how to get it without … | |
Good evening, I am having a little trouble with the outcome of my bucket list assignment. Everything seems to be working just fine, but the final outcome isn't up to par. When you enter numbers from 1-30 or 61-99 it goes into its proper place, however numbers enter in the … | |
Hi ! I want to get a jdbc DataSource through JNDI. I am rather new to JNDI, and I dont know servlets,etc. Whatever tutorials I find on the internet show how to do this using some server like tomcat, etc. I want to make a simple jdbc program in which … | |
Hey everyone I want to create a Map app of my community for mobile phones. Where should I start/ | |
I know the password. I want to crawl all the post of my gf's xanga down to my comp, for better reading. But my gf have set "require friend login" to see her post. So I need to login my id of xanga before reading her post. What I want … | |
Hi ALL =) hope all of u will be right I have been visiting this site constantly and I learned a lot from him, this is the first production in the Java language to me I hope that you like. this is my First Program in java language i hope … | |
Hiya, I need to make a game for my cs class. My game is the word find game and it plays like this: You are given a long word like "antidisestablishmentarianism" and your goal is to find as many words in to word given as possible. My program will save … | |
My objective is make a game program for my cs class. So my game is like this: You input a word and then input another word which starts from the last letter of the first word. The program check if the word has been used before and if the last … | |
Hey, well I have this problem, I am making a game in Java and it is getting really far. If anyone saw my last problem, that is resolved and I finished my networking code. Here is the problem, to start a new game window in my code, one would write … |
The End.