Calendar in onject way  

Hi,I have task to solve: Java Code: DayCreate the class Day for representing days in a calendar.The class should include attributes specifying the day: dayOfMonth, month, year. 1.... Continue Reading
Views : 988
Thursday 25th of October 2012

array of char  

Hi,I have a problem with array. Inputs are size of binary number and integer. I need to create char array from that integer with leading zeroes (I need those 0`s later for a logical operations). Problem is that I can not get those 0`s as a result. Can anyone help me, please? ... Continue Reading
Views : 95
Thursday 25th of October 2012

taking data from recent output file  

helloI have called whlole c code from java and then as result of calling c code from java the output file is saved. I need to call c code several times from java and then I need to use the data from the output file to do some calculations. but my problem is how to make sure that the data... Continue Reading
Views : 103
Thursday 25th of October 2012

Create jar from multiple jars  

How to create a jar from multiple jars? Continue Reading
Views : 107
Thursday 25th of October 2012

Why do I get a NullPointerException  

I have two classes in a package called compressor: Compressor and Reader. Compressor takes a file from the first command line argument (args[0]) and then attempts to read it into a byte array using an instance of Reader. Compressor's code: Continue Reading
Views : 140
Thursday 25th of October 2012

Problem in Program  

Views : 85
Thursday 25th of October 2012

getting all possible ordering of vector  

helloI need to find all possible order of a set of vector I mean if I have the following:012all posssible would be:0 1 2, 1 0 2, 2 1 0, 1 2 0, 2 0 1, 0 2 1 I have tried to use the swap but I didn't get all possible set I have used the... Continue Reading
Views : 111
Thursday 25th of October 2012

Require HELP, Please  

////////////////////////////////////////// Java Code: package customer;import java.util.*;abstract class Computer { public String make; public String cpuType; public double... Continue Reading
Views : 79
Thursday 25th of October 2012

Regarding Java Challenge Thread  

I have moved the Java Challenge thread to the moderator's forum to quarantine it. Everyone, please take a deep breath, drink a beer (or three) and let's continue to aggressively debate ideas here but try to avoid personal attacks. Thanks. Continue Reading
Views : 93
Thursday 25th of October 2012


Java Code: class A{ int a=10; int b; int c; A(int i) { b=i; }}public class C_onstructor{ public static void main(String args[]) { A ob=new A(20); System.out.println("a... Continue Reading
Views : 87
Thursday 25th of October 2012

WildLifeAnalyser Help Please!!!  

Hello Guys... I am trying to learn java but its really hard:confused:... I will be glad if you help me on my project... here is my project... Thanks... Serengeti Wildlife Census Park rangers in the Serengeti are interested in monitoring wildlife populations... Continue Reading
Views : 90
Thursday 25th of October 2012

file $1.class  

I download some source code from internet.I compile them by Jcreator.Now with some source file the compiler makes 2 files.For example from source, jcreator makeServiceManager.class and ServiceManager$1.classAnyone know what is this second file... Continue Reading
Views : 109
Thursday 25th of October 2012

@Override Exception Error  

Hi, I need to run my current java code, which uses an @override expression on a computer with an older Java version (that doesnt seem able to use @override...). Continue Reading
Views : 62
Thursday 25th of October 2012

Help With project  

Ok thanks for taking the time to help, so i have to create the helicopter game for a project and if you dont know what that is its basically a game where if you hold the mouse button it the helicopter goes up and if you release it goes down and the point is to dodge rocks and get far. Well... Continue Reading
Views : 91
Thursday 25th of October 2012

import error  

import org.jdesktop.application.Application; when I type this at he beginning of my code, it always gives me errors with underlining the (org.jesktop) part with red color. What can I do to solve this? Continue Reading
Views : 144
Thursday 25th of October 2012

help: matches don`t work  

function of code is putting if statement and discover do the if statement wrong or not? but the answer is always wrong, plz the help to get result when put the if correct statement is not wrong.thank you Continue Reading
Views : 119
Thursday 25th of October 2012

giving missing return statement error.due to withdraw method.  

class Account{ private String name; int account; int balance; public Account(String owner, int initial, int accNumber) { name = owner; account = accNumber; balance = initial; if (balance Continue Reading
Views : 89
Thursday 25th of October 2012

Updating JTabel  

Hi! I'm rather new to Java and I got a problem with JTabel. The program works like this: the program reads a txt file and inserts all the data, that is splitted with (,), into the tabel. And when the program closes all the data that is in the table gets... Continue Reading
Views : 80
Thursday 25th of October 2012

Calculating min and max in an array list  

I have everything done except finding maximum and minimum values. In this (tester) file, i can't figure out where to do that maximum and minimum for,if loop. Its bolded where it is right now but let me know where it should be. Thank you very much! Continue Reading
Views : 106
Thursday 25th of October 2012

Integrating java and flash  

I have been trying to play ma flash file using java,Can any one give the code to implement this. I want to pass commands between flash and java Thanks in advance Continue Reading
Views : 91
Thursday 25th of October 2012

urgent:calling c program from java  

hii i have a c program (unix)...which is to find process i want to call that from java ...wat do i do?:confused: :eek: :( please help Continue Reading
Views : 92
Thursday 25th of October 2012


Hi i just strated j2ee,done with jsp/servlets wanna learn struts please let me know how i can configure to tomcat/eclipse platform and what all jar i need to download Continue Reading
Views : 96
Thursday 25th of October 2012

Reading .txt files  

Hi I am designing an English Spanish Dictionary using Java. I need to be able to read a .txt file and be able to have access to words in it. How can I scan the file? Where do I put it and is it possible to read to separate strings on one line in a .txt file? Continue Reading
Views : 91
Thursday 25th of October 2012

having several this() invocations in a row  

Java Code: class A{ private int a; private int b; A() { this(1); System.out.println("a= "+a);//a=1 System.out.println("b= "+b);//b=5 } A(int a) { this(2,5); this.a=a; } A(int a, int... Continue Reading
Views : 116
Thursday 25th of October 2012

web application  

Hi all, am new to java technology, am planning to develop the web application which uses a mysql database and netbeans. But am getting confused which type of project should i select, Enterprise Application,Enterprise Application Client , EJB Module or Plain Web Application. please help me am... Continue Reading
Views : 94
Thursday 25th of October 2012

what does the underscore mean in the declarition  

public String _firstName; Continue Reading
Views : 64
Thursday 25th of October 2012

moving square  

how can i make a square that moves?in java ? like a car Continue Reading
Views : 105
Thursday 25th of October 2012

starting java programming on ubuntu linux  

tell me how to install jdk on ubuntu linux without and internet to compile also Continue Reading
Views : 134
Thursday 25th of October 2012

JComboBox problems  

Hello all, I'm having some problems with my program regarding JComboBoxes.My JComboBox won't display an array of StudentClass objects. :confused: Also, how would I be able to update the JComboBox which contains the array which would hold the StudentClass objects... Continue Reading
Views : 105
Thursday 25th of October 2012

JComboBox displaying variable two times, why  

Hi guys,So I was able to set up JComboBox perfectly for my first class, but for my second class when a teacher is added to the class the ComboBox displays the teacher twice.. why? I looked over my code yet I couldn't find any error with it. All help is appreciated,Thanks... Continue Reading
Views : 99
Thursday 25th of October 2012