32,204 Topics

Member Avatar for
Member Avatar for miraj0072004

hello friends, I am making a GUI for a certain fill up form using netbeans..here I need disable a "next" button until all the text fields are filled up...I have tried writing a method that which is called during every keypress event in a text box that checks whether the …

Member Avatar for javaAddict
0
253
Member Avatar for joshianurag18

Hi, I am getting this error. "org.apache.commons.net.MalformedServerReplyException: Could not parse response code." after this line...ftp.connect(ftpHost.getHostName(), 22); Please help me. Thanks, Anurag

0
73
Member Avatar for sixdegreesunder

Hi everyone, I'm new to java. I'm getting an error cannot find symbol m_weapon when i compare char which i assigned from math.random. Thank you, [CODE]public class RPS { public static void main (String[ ] args) { Scanner console = new Scanner(System.in); //used to gather user input System.out.println("WELCOME \n\n"+ "This …

Member Avatar for kramerd
0
215
Member Avatar for jaymozart

[CODE] import java.io.*; import java.util.*; import javax.swing.JOptionPane; public class A15 { public static void main(String[] args) { if(args.length != 1) { JOptionPane.showMessageDialog(null, "Error: Enter one command line argument."); } else { try { String[] array = LeeJungBum15.readFileReturnWords(args[0]); // read file sortAndPrintArray(array, args[0]); // sort alphabetically and print the arrays } …

Member Avatar for jaymozart
0
165
Member Avatar for guru_tech

Well i can see lot of career related questions are posted here So i thought i could contribute something for youth. with more than 5 years of Experience in above subjects I have decided to take classes. Location : Mumbai . Subjects: C Java: Java Basic. Advance Java. C#. VB …

Member Avatar for masijade
0
189
Member Avatar for JanineXD

I was browsing the web for examples on how to partition in Java. [URL="http://www.cs.princeton.edu/introcs/23recursion/Partition.java.html"]I've got to this website that has a detailed example about Partitioning[/URL] so I've tried to run it on my JCreator Pro. I've only got one error, but I've tried all I can do to fix it …

Member Avatar for javaAddict
0
350
Member Avatar for Dean_Grobler

Hi there, Consider the following code, this is a little 'snipet' from one of my classes: [CODE] private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) { NewContact n = new NewContact(); } [/CODE] The method is expected to open a new Frame, where the class of the new Frame is called "NewContact". I've recently …

Member Avatar for JamesCherrill
0
370
Member Avatar for ug61oxk
Member Avatar for masijade
1
365
Member Avatar for serph09

Hi everyone, I just started on learning java and I have this problem I'm trying to figure out. The question is asking me to have my program read the twelve temperature values and print the month with the highest temperature. This is what I have so far: [CODE] public static …

Member Avatar for masijade
0
534
Member Avatar for mimsc

any suggestions? <%@ page language="java" %> <%@ page import="trader.webservices.data.LeadDAO" %> <%@ page import="trader.aabacrm.LeadsList" %> <%@ page import="trader.webservices.data.*" %> <%@ page import="trader.webservices.presentation.Lead" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="trader.webservices.data.ButtonDAO" %> <%@ page import="trader.webservices.constants.UserConstants" %> <%@ page import="trader.webservices.util.Utils" %> <%@ page import="java.math.*" %> <% RequestDispatcher dispatcher = …

Member Avatar for masijade
0
2K
Member Avatar for jems5

I would like to develop a character array output that outputs ONLY a single character in each position. While my programming appear to work fine with filling all spaces with a single character or with 2 characters one each at alternating spaces, its not the same with designated position. For …

Member Avatar for jems5
0
1K
Member Avatar for sateal8

How would I validate a date input that looks like 01 / 23 / 10? It needs the spaces and slashes. i know how to validate the month day and year i just can not figure out how to validate the blank space and slash in Java.

Member Avatar for kramerd
0
83
Member Avatar for ARGF

I am trying to edit a code we were given and it's not working for me when I incorporate the scanner code Basically every place where the code says 'public static void', it says there is an illegal start of expression I HAVE to use methods for this code I …

Member Avatar for ARGF
0
136
Member Avatar for Cheese Man 808

Hey guys, I'm having a bit of trouble with my program. It seems that out.print(translationText) only prints out the last line in theStringBuilder translationText. It's really werid, because System.out.print(translationText) prints out everyline from the StringBuilder translationText. I added append to be true for the FileOutputStream object, but now it just …

Member Avatar for Cheese Man 808
0
1K
Member Avatar for Sonia11

Friends, I have a major problem with recursion. My question is how do you reverse a string in java by applying recursion. It's quite easy working wthout recursion by using using StringUtils.reverse, but I really really need help with recursion on this question.!!!!!!Please!!!!!

Member Avatar for cale.macdonald
0
104
Member Avatar for mallak alrooh

Hello : I have this question and I solve the half of it I wont your help in other codes.. We have do a code for every commend ... In this project you will develop many commands that are related to file operations, as in the following list (red colors): …

Member Avatar for kramerd
0
114
Member Avatar for TheSecOrg

How can I change the color of the font or text? I've tried area.setFontColor, area.setColor, comic.setColor. area is the JTextArea. comic is a font. arial is a font. I have a [code]final Color red = new Color(); red = Color.red;[/code] but I don't know how to set the Font or …

Member Avatar for Ranjitdani
0
144
Member Avatar for printmatic

Firstly, Hello everyone! Ok so I am going through exercises in my Java book and am having a problem with this one question. Basically, it wants a user to input a telephone number as letters capital or lower case, spaces or not... eg. Get-Loan which would be 438-5626. So the …

Member Avatar for kramerd
0
268
Member Avatar for Ranjitdani

we planned to rewrite our System in Java, Which was previously running in Stored procedure. More than 5 Applications calls the procedure which inserts and updates some set of records after the post transaction which has been done in the background. Now we planned to take the stored procedure out …

Member Avatar for Ranjitdani
0
114
Member Avatar for Xufyan

In this program i have input name and code in super class and print it, it also print in sub class [iCODE]Manager[/iCODE] I created the object for super class to input name and code, and another object to input Manager's Data, but in the output the Name is showing null …

Member Avatar for JamesCherrill
0
138
Member Avatar for EEETQ

Hi guys, I'm writing a program to do several things involving getting information from the user about a book (title, author, publisher etc.) There is a Book class and then the client class BookClient. I got the program working for the user entering a single book but then I changed …

Member Avatar for EEETQ
0
138
Member Avatar for oling

Hi, I am a programming newby and trying to write a Java code that does the following: - User inputs a string of choice (this part is ok) - Program reads every third character of the string and replaces with an X Any help would be appreciates. Thanks, oling

Member Avatar for javaAddict
0
87
Member Avatar for moustafa taha

Hello every one i need to help me in understanding this small program ...you can approximate by using the following series ∏=4(1-1/3+1/5-1/7+1/9-1/11+1/13-.....-1/(2i-1)+1/(2i+1)) write a program that displays the value for i=10000,20000,....,and 100000 I've developed this code to solve the problem [CODE]public static void main(String[] args) { int count=1; double sum=0; …

Member Avatar for masijade
0
282
Member Avatar for spades0001

import java.io.*; public class Amortization { public static void main (String[] args)throws IOException { BufferedReader dataIn=new BufferedReader (new InputStreamReader (System.in)); double loanamount=0.0, interestrate=0.0, numberofyears=0.0,amortization=0.0, a=(1+interestrate),b=numberofyears ; String TextInput; System.out.print ("Input the loan amount: ") ; TextInput=dataIn.readLine () ; loanamount=Integer.parseInt (TextInput) ; TextInput=dataIn.readLine () ; System.out.print ("Input the interest rate: ") …

Member Avatar for dangari
0
234
Member Avatar for manosha

hi 2 all, I'd like to ask: how can we Concatenate elements of two dynamic arrays?? and if there is any example it'll really help. thanks in advance :)

Member Avatar for javaAddict
0
53
Member Avatar for llocks

Hello everyone, I am currently taking java and Im trying to learn how to write methods. I want to know learn the best way that I can learn how to read/write methods in a code. Im currently writing a code using lastindexOf. I do understand that im using this to …

Member Avatar for javaAddict
0
93
Member Avatar for pk.sharma

How to enabled encryption using PHP platform so that it can sync with JAVA

Member Avatar for masijade
0
29
Member Avatar for judgemental

I have several classes(all in swing). How can I put all the classes that I have create into tabbed Pane? I have 4 class: Intro in=new Intro(); Hist his=new Hist(); Product pro=new Product(); Contact con=new Contact(); [CODE]import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTabbedPane; public class MainControl extends JFrame { …

Member Avatar for masijade
0
125
Member Avatar for notuserfriendly

I am reading from a file. After i tokenize and assign each value to a string field i call the constructor and initialize the object. next i want to add them to an array. I have done this with a vector and all i do is [CODE=java]ObjectVec.add(obj1);[/CODE] Mind you this …

Member Avatar for masijade
0
171
Member Avatar for wowz

[CODE]public class Triangle { /*-the lengths of all sides -the perimeter -the angles at all corners -the area */ public Triangle(double xa, double ya, double xb, double yb, double xc, double yc) { x1 = xa; y1 = ya; x2 = xb; y2 = yb; x3 = xc; y3 = …

Member Avatar for masijade
0
157

The End.