32,204 Topics
| |
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 … | |
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 | |
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 … | |
[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 } … | |
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 … | |
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 … | |
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 … | |
hi, Please help me. How to create an Access database using Java? THank you | |
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 … | |
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 = … | |
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 … | |
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. | |
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 … | |
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 … | |
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!!!!! | |
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): … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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; … | |
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: ") … | |
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 :) | |
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 … | |
How to enabled encryption using PHP platform so that it can sync with JAVA | |
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 { … | |
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 … | |
[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 = … |
The End.