Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Java


can some one help me with nested loop  

Hi. I'm a beginner of java and im getting confusing about how to make an output like this. JAVA I want to make an output with this word by using nested loop. I'm beginner but when I asked my friend how to do it, he just tole me to use the nested... Continue Reading
Views : 54
Thursday 25th of October 2012

Help  

Hello everyone! Just new to java. Can i ask anybody to pls answer this? How can I convert Stack into a java program? Thank you. Continue Reading
Views : 19
Thursday 25th of October 2012

Transfer from one account to another  

Hi, I m doing a banking project and I need to make a transfer from one account to another. Example moving 100euros from current to savings.can anyone explain me few points in java statements of how can i do this.I am using inheritance i.e having a major class called Acount and 2... Continue Reading
Views : 59
Thursday 25th of October 2012

Whats the best recognised java diploma  

Hey All, Im just starting out and was looking to do a coarse but was wondering who is the best do do a coarse through and are the recognised within the business world. Continue Reading
Views : 40
Thursday 25th of October 2012

Getting the next saturday or sunday from a given date  

I am trying to get the next saturday from a given date. Forexample, if I have given the date 01/27/2010 then I want to get the next saturday which is 01/30/2010. Is this possible in Java? Thanks Continue Reading
Views : 30
Thursday 25th of October 2012

Scanner.nextFloat()  

Hi all, I am working on a scanner that can parse an Wavefront Obj FileProblem is that it does not identify the floats in the obj-file correctly. I could regenerate my problem with this simple code snippet: Continue Reading
Views : 64
Thursday 25th of October 2012

setIcon  

Java Code: import javax.swing.*;import javax.swing.JOptionPane;import java.awt.*;import java.util.*;class RPGContents extends JPanel{ RPGContents() { boolean flagA=true; boolean flagB=true; String... Continue Reading
Views : 76
Thursday 25th of October 2012

Jexcelapi  

I'm using Netbeans 6.8 IDE and just downloaded Jexcelapi. I have it installed correctly and used a demo code I found online to test it out and it worked great. What I'm having trouble with is finding a good tutorial. I'm still learning Java and can't find a beginner friendly... Continue Reading
Views : 40
Thursday 25th of October 2012

Auto Complete - Please Assit  

Hi there! I inherited a website that is java based. I'm so frustrated because I am not a java programmer. I know enough to get by. I have been asked to take the text fields that are put into the database and create an autocompete from the database. I found a couple of examples, I just... Continue Reading
Views : 31
Thursday 25th of October 2012

@Override Annotation  

what is the purpse of the @Override Annotation? Continue Reading
Views : 24
Thursday 25th of October 2012

Help file for Java commands  

Can anyone tell me where I can get the help file of JAVA commands? Continue Reading
Views : 32
Thursday 25th of October 2012

A difficult question  

Can anyone help me with this? THANK YOU VERY MUCH! If the java file name is ABC.java.Why are some classes defined before the public class ABC?e.g.class sparse_binary_vector{ Vector id = new Vector();} class sparse_vector{ Continue Reading
Views : 52
Thursday 25th of October 2012

automatic cell computation in a JTable like an excel spread sheet  

I dont know what should be the right title for this topic, but this is the only thing that comes up in my mind, well heres the scenario Java Code: package xxTestxx;import... Continue Reading
Views : 33
Thursday 25th of October 2012

Serious Problem with JComboBox  

When the model of a combo box is changed by setting it to a certain index, usually using setSelectedIndex() or setSelectedItemAt(int index), the software (code) calls actionPerformed. This results in multiple stack calls to actionPerformed, that then unwind. This is undesirable if you have... Continue Reading
Views : 16
Thursday 25th of October 2012

NullPointerException() problem  

Hello, I'm trying to implement Nine Men's Morris game. For drawing the little ovals representing the moves, I'm using the Element class. This is used as a matrix in MorrisElement class. But when I'm trying to draw one element, NullPointerException() is throwed. When I was... Continue Reading
Views : 54
Thursday 25th of October 2012

java graphics within main method  

I'm building an application (NOT an applet), and I was wondering if it is possible to draw graphics to the screen (like a line or a rectangle) within the main method (public static void main(String [] args)). Is this possible? , For example: ... Continue Reading
Views : 52
Thursday 25th of October 2012

Javax.net.ssl.SSException when connecting to URL  

Hi, I'm getting the exception below when I'm executing httpClient.executeMethod(postMeth) in my java code. Please help. javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl.Alerts.getSSLExceptio ... Continue Reading
Views : 80
Thursday 25th of October 2012

Class Version in Serialization  

Hi,Please let me clear about the following, While serializing a class object, a unique version UID of data type long created by the compiler for the class file as version identifer. Also that it is possible to define the serialVersionUID variable manuallly in the... Continue Reading
Views : 15
Thursday 25th of October 2012

NullPointerException help  

I am fairly new to java. I have only been working with it for about two weeks. I'm trying to teach myself as I go to see what it's like before I try to enroll in any classes. The code I am writing is meant to tell a person how much to pay if they were to go to the movies and also if they have... Continue Reading
Views : 46
Thursday 25th of October 2012

How to solve this JTable problem [REPOST]  

hi, I am trying to build a small program that can search java ?class? files and ?method?s from a repository where millions of java files are stored. In addition it has an algorithm(LONGEST COMMON SUBSEQUENT) to compare the results to find the similarity percentage and user can make... Continue Reading
Views : 46
Thursday 25th of October 2012

Help needed to create an Automata state machine in Java  

Hi all, im trying to create a finite automata state machine, whereby a state can have several transitions to other states. Ive tried an implementation where each state was an object from a State class, however, each state had to be constructed using a constructor. This... Continue Reading
Views : 58
Thursday 25th of October 2012

How to order a vector  

Does any experts know how to order a vector?e.g. Double a[] = {1, -1, 4, 10};How can I make it like {-1,1,4,10}? Continue Reading
Views : 27
Thursday 25th of October 2012

Read/Write Files  

Hi there, I have a project on my mind at the moment that would require reading and writing to/from a file for my robot. I have looked on the net and examples seem to be fairly confusing. Any one know a simple way of explaining read to/from file? Thanks Continue Reading
Views : 14
Thursday 25th of October 2012

Earlier date  

Hi I have written the following programe to compare two dates and give the earlier date. Java Code: import java.util.Scanner;public class Dates { public static void... Continue Reading
Views : 15
Thursday 25th of October 2012

How to convert the Vector object into an array  

How to convert the Vector object into an array? e.g.Vector a = new Vector();How to convert a into int array? Thanks a lot in advance!:D , Yes. But there is nothing for conversion between objects and arrays. , Thanks a lot! I... Continue Reading
Views : 37
Thursday 25th of October 2012

Ap CompSci Java Project  

Hey guys i just need someone to completly do this for me i dont get it one bit. Im reading the 100 pg chapter from the beginning ill get it more twords the end. Project? Compute ThisCreate a new project called ComputeThis having a class called Tester. The main method... Continue Reading
Views : 20
Thursday 25th of October 2012

jcheckbox item listener  

i hav tis itemlistener code for jcheckbox. when i click on the jcb, it shows true, which means the checkbox is ticked. when i untick the checkbox, it shows 2 lines, true & false. can any1 advice me which part of my code should i edit to make it print false only? im printing out the false & true... Continue Reading
Views : 43
Thursday 25th of October 2012

bitwise not ~ operator  

wherez ur piI method? Continue Reading
Views : 55
Thursday 25th of October 2012

Very strange structure  

Hi could anyone explain to me what is going on with the structure of the code below? I mean, what I understand from it that enrolButton want to register some ActionListener which is created inside of this call and method actionPerformed is overwritten, but:1. I just cant understand the... Continue Reading
Views : 41
Thursday 25th of October 2012

working with JC  

hi, i am working with j2me version 3.0and trying to develop an application for my sony ericcson k800i.this application accesses the phone memory using file connection and appends all theavailable folders in a list.Now the problem is: for each folder, you have to... Continue Reading
Views : 46
Thursday 25th of October 2012