2,777 Posted Topics
Re: Can you get definitions from Google for these terms and post them here for us to chose which ones make sense in the java programming environment? | |
Re: Which is the "other"button? I see two one on top and one on bottom. Which button is supposed to do what? On the bottom there are two buttons with arrows. When I press them the upper button moves and then the bottom button moves. The images seem to overwrite each … | |
Re: [CODE]source.getActionCommand() == "click")[/CODE] Use the equals method when comparing the contents of objects Please add some comments in your code where you are having the problem. Something like: //************* HERE IS THE PROBLEM. I CAN"T Get the ddd to ssss .....***************** | |
Re: On Windows the file's extension controls what program opens the file. Did the same program open and display both the .txt and the.dat file? Create a .txt file and rename it to .dat and see what happens. Also rename a .dat to a .txt and see. | |
Re: [QUOTE]call a 2d array?[/QUOTE] Can you explain what you mean by "call"? Arrays contain data, not methods. They could contain object references to classes that have methods that could be called: | |
Re: [QUOTE]best way to return the values of the array instead if the index?[/QUOTE] Using The index is the ONLY way to get elements out of an array. If you want a utility to print the contents of an array look at the toString method of the Arrays class. | |
Re: Where are you in your project? What does the posted code do? Does it give errors when executed? | |
| |
Re: Google will help you answer these. If you find something you don't understand, copy and paste it here with your questions. | |
Re: [QUOTE]Your Answer is: AYou Are Incorrect[/QUOTE] Is this the line you want to change? What do you want it to be changed to? [CODE]if (Answer == "A")[/CODE] Use the equals() method when comparing the contents of Strings. The == operator is for primitives. | |
Re: [QUOTE] how to include mysql jar into jar file[/QUOTE] I don't think you want another jar inside of your jar. You want to add the other jar to your classpath. See the manifest file's Class-Path: record to do this. If you want all the classes in one jar file, extract … | |
Re: Did you read the API doc for the BufferedWriter class's write() method? What data types does write() take for its arguments? What data type is returned by the nextElement() method? Can you convert nextElement() returned value to one that is acceptable to write()? | |
Re: Not just the main() method. It returns to any method's caller. The main() method is (usually) the one called by the java command. | |
Re: Do you expect some one to learn from copy and pasting? See: [url]http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html[/url] | |
Re: [QUOTE]how to store data into an array[/QUOTE] Start with this part and when you understand that, move on to the next part. What items will go into the array? numbers or Strings or class objects? Define an array large enough to hold the most data you expect to get. Define … | |
Re: [QUOTE]The VM just freezes[/QUOTE] Your code is probably in a tight loop. Are there any loops in your code that might not end? For debugging, add an int variable that you increment inside the loop and exit the loop when its value exceeds a maximum value. if(lpCnt++) > 100) break; … | |
Re: [QUOTE]t keep getting the Class not found message[/QUOTE] Please copy and paste the full text of the error message here. Your problem could be that the browser is looking for the class: class in the RectanglesMover package contained in the file: RectanglesMover.class.class If so, remove the .class from the code= … | |
Re: There is no definition for the SnakeMenu class. | |
Re: What are you questions? Will this app use GUI or commandline input? Will people's schedules be read in from a file or how? What design ideas do you have so far? ![]() | |
Re: [QUOTE] I have tried a couple of thing[/QUOTE] Show what you have done and its output and explain what is wrong. | |
Re: [QUOTE]is it possible to run two java programs from one jar file one after the another like we can do with batch files?[/QUOTE] Yes by using a commandline with the starting class named: java -cp THEJARFILE.jar Class1 java -cp THEJARFILE.jar Class2 The -jar option reads the Main-Class: line of the … | |
Re: I suggest that you start with a simple server and client. Have the server create a new Thread to process incoming connections. Then adding the logic for more than one client should be the next step. But do it one step at a time. [QUOTE] Someone creates a chat and … | |
Re: Doesn't look like java code. Are you lost? Can you explain where you are and what you are doing? | |
Re: [CODE]for(string number : array)[/CODE] Do you have a class named string? Or do you mean the java class: String I guess you intended to use pseudo code, but without explanations on what it is doing, it looks confusing to me. Do you not use indentations when writing code? Unintended code … | |
Re: Can you post the data here on the forum with comments about what it is suppose to contain and what you want done with the data when it is read from the file. For example: The data on each line contains the dasdfasf in columns 1-40 and the rwrwrf in … | |
Re: The code you posted does not compile without errors. Do you expect it to compile? For example: List is an interface. | |
Re: [QUOTE].how to get rid of this code?[/QUOTE] The font of your image is too small, can you copy and paste here what you want us to see? How can we recommend a change to your code if you don't show it? Obviously your parser and formatter is not working properly. | |
Re: To "change" a key means that the old key is not in the Map any more and the new key points to the data the old key pointed to. Basic steps would be get the value for the old key, delete the old key, store data with new key. | |
Re: [QUOTE]but i m not getting any output[/QUOTE] What shows on the console when you try to execute this program? There must be an error message. | |
Re: You need more printlns to show the values of the booleans you are using to control the movements. You need to see where the execution flow is going. | |
Re: One man's opinion: In the end you will know many languages. The underlining computers mostly all work the same way. Your choice of language to use on a project may be determined by your boss. Most of us here will probably say start with Java. | |
Re: [QUOTE]I have this line of code that is not centering[/QUOTE] What layout manager are you using? | |
Re: Can you show what the printed output from when you executed the code? What .class files were in the directory when you executed the code? [QUOTE]does anyone know how to make this work?[/QUOTE] Neither of the posted code compiles. Fix the compilation errors. | |
Re: Do you have the code for the GUI that is giving you the problems? Post a small code that will compile and execute to demonstrate the problem | |
Re: Look at the Calendar classes for methods to do the conversions. [QUOTE] use interface to convert[/QUOTE] Strange to use Scanner to get input and then use GUI for the other way??? Or did you mean something else by "interface"? | |
Re: How many different values are assigned to the answers variable? When multiple values are assigned to a variable, the variable will contain only the last one assigned. The previous values are gone. int i = 1; i = 2; i = 3; // Here i is 3, the values 1 … | |
Re: What was the full text of the error message? You should not use ANY of Java's keywords or class names for the names of your classes or variables. | |
Re: [QUOTE]I want to have at least 1-2secs of delay/pause so the user can have a look on it before it loops back to show the input dialog[/QUOTE] Can you explain what you want to happen? What is being shown on the GUI for the 1-2 seconds? Do you want to … | |
Re: What are your questions? Do you have any code written for your assignment yet? Please post it with your questions. | |
Re: You don't explain What does your current code print out now? | |
Re: [nitpick] startTagIndex + openingTag.length(); ... searchFrom = endTagIndex + closingTag.length(); // adv ptr past last tag found [/nitpick] | |
Re: [QUOTE]Having a lot of trouble with this [/QUOTE] Please list your troubles item by item as per your list. | |
Re: Sounds like the OP got a skeleton program with lots of "to do later" methods that have: throw new UnsupportedOperationException("Not yet implemented"); in them in case those methods were forgotten to be filled in. | |
Re: [QUOTE]how can I access the getStick() method defined within the chopStick class[/QUOTE] To access any part of an instance of a class, you need a reference to that instance. Some where you create an instance: AnObject aRef= new AnObject(); // create an instance and set reference to that object then … | |
Re: [QUOTE] How would I continuously check if the person has sent a message?[/QUOTE] Is this on the sending side or the receiving side? Why not have the side that you want to know of their activity post a message saying they have sent/received the message? | |
Re: What doc are you getting that from? My API doc has this: protected Object clone() | |
Re: What is it you are trying to download? The Oracle site has lots to download. JDK for SE, EE, ... JRE Tutorial API documentation ... ??? | |
| |
|
The End.