32,199 Topics

Member Avatar for
Member Avatar for maieutiquer

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 …

Member Avatar for maieutiquer
0
114
Member Avatar for the reporter

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 …

Member Avatar for Darryl.Burke
0
985
Member Avatar for ekofo

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 …

Member Avatar for NormR1
0
118
Member Avatar for dupowdis

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 …

Member Avatar for NormR1
0
91
Member Avatar for SHARKASI

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; …

Member Avatar for jon.kiparsky
0
207
Member Avatar for bonett09

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 …

Member Avatar for jon.kiparsky
0
115
Member Avatar for Maria5683

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 …

Member Avatar for NormR1
0
183
Member Avatar for john butler

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 …

Member Avatar for emclondon
0
127
Member Avatar for linkingeek

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 …

Member Avatar for jon.kiparsky
0
113
Member Avatar for prem2

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 …

Member Avatar for ~s.o.s~
0
468
Member Avatar for soumya_mjmder

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.

Member Avatar for localp
0
48
Member Avatar for smoothe19

How do i write to a text file [B]WITHOUT[/B] deleting the current information in it? basically write on the next available line.

Member Avatar for localp
0
76
Member Avatar for Jay V.

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 …

Member Avatar for kashokreddy14
0
138
Member Avatar for TejaDharma

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?

Member Avatar for TejaDharma
0
88
Member Avatar for aminit

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

0
53
Member Avatar for hawynstud

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 …

Member Avatar for hawynstud
0
143
Member Avatar for w_van_heerden08

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 …

Member Avatar for scrappedcola
0
130
Member Avatar for 1314abc

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. */ /* …

Member Avatar for Taywin
0
106
Member Avatar for Jayavardhan

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 …

Member Avatar for Jayavardhan
0
409
Member Avatar for paul ince

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 …

Member Avatar for Stefano Mtangoo
0
942
Member Avatar for ttboy04

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 …

Member Avatar for ttboy04
0
103
Member Avatar for chinee

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 …

Member Avatar for NormR1
0
308
Member Avatar for Victor C.

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 …

Member Avatar for NormR1
0
173
Member Avatar for hypernova

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 …

Member Avatar for parry_kulk
0
120
Member Avatar for Teethous

Hey everyone I want to create a Map app of my community for mobile phones. Where should I start/

Member Avatar for peter_budo
0
74
Member Avatar for gunbuster363

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 …

Member Avatar for masijade
0
106
Member Avatar for theprogrammer19

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 …

Member Avatar for ~s.o.s~
0
207
Member Avatar for imag1ne

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 …

Member Avatar for Taywin
0
186
Member Avatar for imag1ne

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 …

Member Avatar for Taywin
0
147
Member Avatar for WargRider

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 …

Member Avatar for NormR1
0
103

The End.