2,777 Posted Topics

Member Avatar for new_developer

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?

Member Avatar for JamesCherrill
0
214
Member Avatar for conanzz

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 …

Member Avatar for conanzz
0
206
Member Avatar for phoenx

[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 .....*****************

Member Avatar for phoenx
0
165
Member Avatar for efronefron

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.

Member Avatar for NormR1
0
820
Member Avatar for syria718

[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:

Member Avatar for NormR1
0
139
Member Avatar for vomhaus

[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.

Member Avatar for NormR1
0
227
Member Avatar for bleachisback

Where are you in your project? What does the posted code do? Does it give errors when executed?

Member Avatar for NormR1
0
279
Member Avatar for RicardoE
Member Avatar for fida.rind

Google will help you answer these. If you find something you don't understand, copy and paste it here with your questions.

Member Avatar for jwenting
0
82
Member Avatar for PDB1982

[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.

Member Avatar for Majestics
0
141
Member Avatar for Pravinrasal

[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 …

Member Avatar for NormR1
0
155
Member Avatar for chixm8_49

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()?

Member Avatar for NormR1
0
195
Member Avatar for sahil1991

Not just the main() method. It returns to any method's caller. The main() method is (usually) the one called by the java command.

Member Avatar for NormR1
0
138
Member Avatar for ericwalter

Do you expect some one to learn from copy and pasting? See: [url]http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html[/url]

Member Avatar for peter_budo
0
6K
Member Avatar for g33k3r

[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 …

Member Avatar for NormR1
0
118
Member Avatar for FALL3N

[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; …

Member Avatar for JamesCherrill
0
160
Member Avatar for kalodakilla

[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= …

Member Avatar for NormR1
0
293
Member Avatar for sirlink99
Member Avatar for spades0001

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?

Member Avatar for hfx642
0
147
Member Avatar for domifa621

[QUOTE] I have tried a couple of thing[/QUOTE] Show what you have done and its output and explain what is wrong.

Member Avatar for Ezzaral
0
502
Member Avatar for gunjannigam

[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 …

Member Avatar for NormR1
0
252
Member Avatar for Pytho

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 …

Member Avatar for NormR1
0
97
Member Avatar for crazyIT

Doesn't look like java code. Are you lost? Can you explain where you are and what you are doing?

Member Avatar for NormR1
0
94
Member Avatar for quinnifir

[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 …

Member Avatar for quinnifir
0
129
Member Avatar for kalz

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 …

Member Avatar for kalz
0
126
Member Avatar for jtodd

The code you posted does not compile without errors. Do you expect it to compile? For example: List is an interface.

Member Avatar for jtodd
0
156
Member Avatar for hamzamuradkhanh

[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.

Member Avatar for teo236
0
183
Member Avatar for hatebin

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.

Member Avatar for NormR1
0
195
Member Avatar for desert564

[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.

Member Avatar for NormR1
0
256
Member Avatar for sirlink99

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.

Member Avatar for sirlink99
0
368
Member Avatar for presley tonde

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.

Member Avatar for Zaad
0
97
Member Avatar for sirlink99

[QUOTE]I have this line of code that is not centering[/QUOTE] What layout manager are you using?

Member Avatar for sirlink99
0
201
Member Avatar for FALL3N

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.

Member Avatar for NormR1
0
382
Member Avatar for jsook724

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

Member Avatar for NormR1
0
307
Member Avatar for willywhomperz

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"?

Member Avatar for NormR1
0
110
Member Avatar for vomhaus

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 …

Member Avatar for murali_quest
0
105
Member Avatar for jagadeeshkumar

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.

Member Avatar for Donnovan
0
85
Member Avatar for fcaoile

[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 …

Member Avatar for mKorbel
0
2K
Member Avatar for poo11

What are your questions? Do you have any code written for your assignment yet? Please post it with your questions.

Member Avatar for stultuske
0
115
Member Avatar for malchus
Member Avatar for hatebin

[nitpick] startTagIndex + openingTag.length(); ... searchFrom = endTagIndex + closingTag.length(); // adv ptr past last tag found [/nitpick]

Member Avatar for JamesCherrill
0
139
Member Avatar for willywhomperz

[QUOTE]Having a lot of trouble with this [/QUOTE] Please list your troubles item by item as per your list.

Member Avatar for Majestics
0
209
Member Avatar for Dhanesh10

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.

Member Avatar for Dhanesh10
0
6K
Member Avatar for phoenx
Member Avatar for baby_c

[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 …

Member Avatar for baby_c
0
169
Member Avatar for sirlink99

[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?

Member Avatar for NormR1
0
222
Member Avatar for stevanity

What doc are you getting that from? My API doc has this: protected Object clone()

Member Avatar for stevanity
0
113
Member Avatar for gyno

What is it you are trying to download? The Oracle site has lots to download. JDK for SE, EE, ... JRE Tutorial API documentation ... ???

Member Avatar for jackmaverick1
0
202
Member Avatar for Xufyan
Member Avatar for freesoft_2000
Member Avatar for Ezzaral
0
151

The End.