32,204 Topics
| |
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 … | |
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) … | |
what's the simpliest code to display a PDF file inside a JTextArea?? | |
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 … | |
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. … | |
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 … | |
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. | |
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 … | |
I would like to self study java programming. What would I do to successful my learnig give me an advise | |
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...:( | |
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 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 … | |
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 … | |
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 * … | |
| 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 … |
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? | |
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 = … | |
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 … | |
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 … | |
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 … | |
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. | |
What are static and abstract methods?What are the advantages of using them? | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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: … |
The End.