32,204 Topics

Member Avatar for
Member Avatar for George2

Hello everyone, I have written the folllowing scripts, just want to output "Foo is true." when the property foo is set to true. But when using Eclipse to run the simple script, there are something wrong. Could anyone help to check what is the wrong with my shell scripts? Source …

Member Avatar for vinu09
0
208
Member Avatar for PhiberOptik

Hey guys, I'm trying to use MySQL and I have a server setup and ready to go and I'm 100% sure it works. I read a tutorial page and tried to find more but I couldn't. What I did was drag the .jar file that came in the Connector/J.zip (3.0) …

Member Avatar for peter_budo
0
699
Member Avatar for rude04
Member Avatar for peter_budo
0
152
Member Avatar for VernonDozier

I have a problem that I have "solved" in that it now does what I want, but I'd like to know why it works. I have a JFrame. Within that JFrame I have three JPanels, which I'd like the user to be able to adjust. I would like to be …

Member Avatar for VernonDozier
0
146
Member Avatar for llemes4011

Hi, I'm on Christmas Break and am bored out of my mind so i decided that i wanted to write a program that generates a SOLVED Sudoku board, i.e., it has all the numbers filled in. I'm going to write a program later to turn it into an unsolved puzzle. …

Member Avatar for llemes4011
0
169
Member Avatar for randomFIRE

I am getting this error Exception in thread "main" java.lang.NoClassDefFoundError: TestApp (wrong name: Test/TestApp) which I have googled and tried suggestions, but it doesn't fix it. I have tried unsetting my CLASSPATH etc. and it doesn't work. The file TestApp.class IS in the directory that I am running the program …

Member Avatar for randomFIRE
0
323
Member Avatar for RabbitruN

Hi, I need some enlightenment with copying arrays in JAVA from some of ya seasoned lots. I have this 2d array , twoDarray[10][6] and another 1d array oneDarray[1,2,3,4,5,6]. I'd like to copy the 1d array into the 4th row of the 2d array.Suggestion please. Thnx in advance.

Member Avatar for RabbitruN
0
319
Member Avatar for awo

Is there any class in java or a package that one can use to manage IP configuration. I mean i was planing to develop a cafe timing application that allows people to bring in there computer system and it will not allow the client system to browse when their time …

Member Avatar for ~s.o.s~
0
335
Member Avatar for thilinam

I would like to self study java programming. What would I do to successful my learnig give me an advise

Member Avatar for jbennet
0
145
Member Avatar for raija09

public class solve{ public static void main (String []args){ A cs = new A(); int first=34; int second=4; System.out.println("Sum:" + cs.add(first,second)); System.out.println("Difference:" + cs.subtract(first,second)); } } i got this code, unfortunately it refuses to run.. please help.. Something is wrong with "A", dnt know what it is...:(

Member Avatar for stephen84s
0
154
Member Avatar for sivak

i have one text box date of birth and submit button ..if i click that submit button the calender should open ...if we selevt any one of the date on that calender the date should display in dataof birth text box.. can anyone tell me the javascript code for this …

Member Avatar for sivak
0
78
Member Avatar for k2k

Member is class consisted of member informaiton such as firstname, lastname, phone etc. would anyone please point out what this function gave me NullPointerException runtime error? I think I initialized everything. thanks [code] public static void read(Member box[], int count) { Scanner reader = null; try { reader = new …

Member Avatar for ~s.o.s~
0
69
Member Avatar for marcmm

ok, I have a form that submits data to a database. data that is colected from things like dropdown boxes, textboxes, checkboxes etc. I want to put some conditions that prevent the user from submitting something that is missing important data. I found a little tutorial that dose that, but …

Member Avatar for manish.s
0
180
Member Avatar for deven1974

Implement the insert, remove, and search methods of the BinarySearchTree class. Included are the Main, Tree, and TreeException classes. Do not make changes to those classes. Your tree should work with them as shown. All operations should be implemented recursively. Additional methods may be needed. [CODE] /* * Tree.java * …

Member Avatar for quuba
0
214
Member Avatar for Boyet728

I am very new to programming and I have an assignment, but I am not asking for the solution. I just want to understand what is being asked. Our instructor presented two codes using a break and continue statement. He stated that both methods are bad programming practices. Which I …

Member Avatar for ~s.o.s~
0
129
Member Avatar for kaushalya_uom

I'm going to make a small spreadsheet using java. I thought to use jTable as the spreadsheet. How can I display the output when a function like 'sum' included in a cell?

Member Avatar for Ezzaral
0
44
Member Avatar for TheWhite

This is actually part of a much bigger program, but I cut it down to the problematic area to make it easier to read. [code=java] import javax.swing.JButton; public class test{ static GameButton[] grid; static class GameButton extends JButton{ int value = 0; } public static void main(String[] args){ grid = …

Member Avatar for BestJewSinceJC
0
95
Member Avatar for javafrustrated

The program is intended to read a file with a few lines of strings to determine whether or not they are palindromes. I'm getting an error while compiling - tagged where the error shows up. I'm not sure whether or not it is going to read the lines correctly from …

Member Avatar for BestJewSinceJC
0
158
Member Avatar for americaneagl

For this one I have to do the while and do-while plus the for loop. I have this bank/atm style program so the goal is to put the teller into a loop so that the user can deposit, withdraw, check the balance as long as they need to, and entering …

Member Avatar for BestJewSinceJC
0
101
Member Avatar for roadToNowhere

Hey guys, would like to thank everyne for help on previous post. the following code is meant to populate a hashmap and hash set respectivly, but when i run my programme its giving me a null pointer in my user interface, could anyone help guide me? [code] package concordanceReader; import …

Member Avatar for Antenka
0
99
Member Avatar for bachma7

hi every body! is there anyone know how to play an incompleted music file when it 's be downloading by a java program? please help me. thanks a lot.

0
39
Member Avatar for Ninad16
Member Avatar for ~s.o.s~
0
196
Member Avatar for drjay1627

I small maze game and I got a key Listener. I got it to work. The problem I have is that i have a text box in the gui and Key Listener is added on to the that. but I want to set it so that when the window is …

Member Avatar for Ezzaral
0
130
Member Avatar for drjay1627

I made a maze game. When you click the button, a navigator is created. But before you create a navigator, if you try moving the navigator, there is a null pointer exception. since the navigator can be moved by pressing keys on the keyboard, I want an error message to …

Member Avatar for drjay1627
0
83
Member Avatar for rofio

[CODE]package corpus; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import java.util.HashMap; import java.util.Map; import java.util.HashSet; import java.util.Set; import java.util.Collection; import java.util.TreeSet; public class FileReader { private static final String[] FILES ={"a_christmas_carol_capter1.txt", "a_christmas_carol_chapter4.txt", "emma_chapter1.txt", "emma_chapter2.txt", "pride_and_prejudice_chapter3.txt",}; private Map<String, Set<String>> corpusCV; public FileReader(String textFile) throws FileNotFoundException { Set<String> texts = new HashSet<String>(); corpusCV …

Member Avatar for rofio
0
155
Member Avatar for alan72

Does anyone have any code or links that shows how to interact with Web Pages with VB6? I'm trying to find button/image files (.gif, .jpeg) within the HTML and have VB send a command to press that button with code. I read a lot about Web Browser Control, but can't …

0
54
Member Avatar for dnmoore

have to creat a geosolid class that has 3 sub class i choose sphere cylinder and cone, i got the first two to work but my cone class works except when it calculates the volume it keep getting 0 no matter what number is use for the hieght and radius …

Member Avatar for quuba
0
179
Member Avatar for andrepezzo

Hi..my aim is to serialize/deserialize my "SoapPair" class , that contains Axis MessageContext obj (SoapPair receives this from its constructor), not serializable object(when trying to normally serialize , it returns "axis MessageContext not serializable").. How do I serialize/deser the SoapPair class? Do I have to use SerializationContext/Deser context? How? Thanks …

Member Avatar for ~s.o.s~
0
160
Member Avatar for lepetitevoddy

I have this wierd kink in this program, it keeps telling me that there is a "missing return statement for public static question. i'm kind of new to JAVA and i've tried everything! please can someone help! import javax.swing.JOptionPane; public class arithmetic { public static void main(String[] args) { JOptionPane.showMessageDialog(null, …

Member Avatar for ~s.o.s~
0
242
Member Avatar for roadToNowhere

right, so ive got this problem, basically, ive got a bunch of text files and i want to use the scanner to go through every single file, and seperate every single word from all the text files, i tried everythnig, and ive scoured this forum my code looks like this: …

Member Avatar for roadToNowhere
0
104

The End.