2,777 Posted Topics

Member Avatar for badnack

[QUOTE]but the processes launch an exception.[/QUOTE] What was the exception?

Member Avatar for badnack
0
346
Member Avatar for tomay

Can you show what your current design ideas are? And explain what your problem is coding that design in java.

Member Avatar for NormR1
0
34
Member Avatar for umair jameel

Where is EasyIn defined? Is it a class that is in a jar file that you need to include on the javac program's classpath? Where did you find EasyIn? Is there any doc there about it?

Member Avatar for NormR1
0
841
Member Avatar for asif49

Make a list of the functionality you want to give your class. Make a list of the methods you'll need and the data structures to support the data in the set. Do a little design work and start coding.

Member Avatar for NormR1
0
105
Member Avatar for Germy Loo

[QUOTE]doesn't work.[/QUOTE] Please explain what happens. If there are error messages in the browser's java console, copy them and paste here.

Member Avatar for NormR1
0
262
Member Avatar for abyss776

What layout manager are you using? Can you post a small program that compiles and executes and shows the problem.

Member Avatar for abyss776
0
215
Member Avatar for ibthevivin

You want to add an "s" if the number of units is > 1? Look at the tertiary operator. It is a quick way to do something like that in a single statement String lbl = "hour" + ((hours > 1) ? "s" : "");

Member Avatar for hfx642
0
183
Member Avatar for jmercer23

Check that all the {s have a matching }. If your editor does not have a tool for matching finding the matching {}s, print the listing and use a pencil to manually pair them. Your unformatted code makes it very hard to see matching {}s. If you use code tags …

Member Avatar for NormR1
0
369
Member Avatar for mxa92

Use the concept of two arrays in parallel. One is the String of '-' the other is the String of characters for the word. Given a char input by the user, search the word for a match, if found, replace the '-' at the same position in the String of …

Member Avatar for hfx642
0
137
Member Avatar for asif49

[QUOTE]but I can only remove 1 value (the first one found).[/QUOTE] Please explain and show what the problem is. In removing items from a list it's better to start at the end of the list and move forward. That keeps the front of the list unchanged as you move into …

Member Avatar for asif49
0
678
Member Avatar for popsyjohnson

Please explain your problem. Show input and output and add comments showing what the problem is and what the output should be.

Member Avatar for Ezzaral
0
98
Member Avatar for asif49

[QUOTE]Can't do str.contains because it allows almost anything to match anything else.[/QUOTE] Please explain and post the code showing your problem. If the order is not important, you could use a Set. Add all the Strings to it and at the end only the unique ones will be there, duplicate …

Member Avatar for asif49
-1
102
Member Avatar for koolhawk

[QUOTE]How could I allow the user to specify a word and then have the program check if that word is on the game board.[/QUOTE] How/where are the words on the game board stored? Given a String containing the word, you would search the location where the game board words are …

Member Avatar for NormR1
0
172
Member Avatar for DragoDraco
Member Avatar for oldezwe
Member Avatar for peter_budo
0
485
Member Avatar for nyfan68
Member Avatar for Programmerman

[QUOTE]I am trying to access a varible value from a return fuction in another class.[/QUOTE] What code are you talking about? You need to give the name of the class, the name of the method and indicate with easy to see comments where you are calling the method.

Member Avatar for NormR1
0
203
Member Avatar for skracer13

The print statement should not change the value of a variable. Can you explain exactly what you see when you execute the code with the print statement and when you execute the code without the print statement. Where do you show the value that is returned by the getLowestInRow() method?

Member Avatar for hfx642
0
163
Member Avatar for hadeelh30
Member Avatar for NormR1
0
139
Member Avatar for rayden150

Your bits and pieces of program code are hard to piece together to make a complete program. Can you write a small simple program that compiles and executes and shows your problem? The small squares you see look like you are reading binary data (like int or double) and treating …

Member Avatar for hfx642
0
223
Member Avatar for jackmaverick1

Create the full command as a String before calling the exec method and print it out so you can see if it is correct.

Member Avatar for NormR1
0
295
Member Avatar for Prisms

Your code works for me. It prints one line with all the file's lines in it. Can you copy the console for when you execute the program and paste it here?

Member Avatar for NormR1
0
242
Member Avatar for Danielhuo

Do you have any specific questions or problems? If so please ask them. If you are getting errors, please copy and paste the full text of the messages here.

Member Avatar for NormR1
0
873
Member Avatar for sleepybug

If you are using the readLine() method be sure to send an endline character. The readLine method waits until it has read all of a line before returning.

Member Avatar for JamesCherrill
0
1K
Member Avatar for begueradj

Here's how to copy from the command prompt console: To copy the contents of the command prompt window: Click on Icon in upper left corner Select Edit Select 'Select All' - The selection will show Click in upper left again Select Edit and click 'Copy' Paste here.

Member Avatar for hfx642
0
184
Member Avatar for virtualvictory

See the Desktop or Runtime and Process classes for ways to call OS programs from a java program.

Member Avatar for NormR1
0
53
Member Avatar for spades0001

Can you explain your problem? You very short pieces of code don't say much.

Member Avatar for NormR1
0
147
Member Avatar for billingsj09

[QUOTE]how to read in a file of integers and build a tree using them[/QUOTE] Start with the reading the file of integers. When you can read them into a variable, add logic to add them to the tree. Then read the other file and test each number is in the …

Member Avatar for NormR1
0
765
Member Avatar for Java4A

If you had three pieces of paper with the names written on them and four slots on the table where you could lay the pieces of paper, 3 holding the papers with the names and one empty, How would you move the pieces of paper one at a time from …

Member Avatar for NormR1
0
93
Member Avatar for Labdabeta

The Runtime and Process classes can be used to call external/OS commands.

Member Avatar for thines01
0
114
Member Avatar for Snipererer

Can you post the code do you have for the program with your questions or the full text of the error messages you are having problems with. When you post code, please use code tags. See the (code) icon above the input box.

Member Avatar for NormR1
0
97
Member Avatar for bops
Member Avatar for JamesCherrill
0
2K
Member Avatar for mydreamgirl

Define what you mean by a Web site? Are you talking about an HTML page that loads in a browser? Non applet java programs runs on a PC by using the java command.

Member Avatar for NormR1
0
342
Member Avatar for javausers

Or pass the name of the file in the args to the main method, then continue as above.

Member Avatar for NormR1
0
232
Member Avatar for wannas

Where is the receive "function" or do you mean method? Where is the infinite loop that the code enters? The only loops I see are ones that you have coded as infinite loops: while(true). If you don't want those loop to be infinite, provide a way for them to end.

Member Avatar for NormR1
0
201
Member Avatar for dimitros

Your error message sounds like a mismatched pair of {}s. Look at the lines before the line number of the first error message.

Member Avatar for stultuske
0
591
Member Avatar for jackmaverick1

[QUOTE]part of my code that decides what to keep seems to be making a mistake[/QUOTE] Have you tried debugging your code? If you do not have an interactive debugger, add lots of printlns to your code to show the values of variables as they change and are used and to …

Member Avatar for NormR1
0
323
Member Avatar for akshayinbox
Member Avatar for NormR1
0
70
Member Avatar for kmbl84

Cross posted at [url]http://www.java-forums.org/java-applets/51137-two-random-numbers.html[/url]

Member Avatar for NormR1
0
339
Member Avatar for fausto1234

[QUOTE]struggling on creating a unique account id for each customer[/QUOTE] What are the rules for defining an account id? For example: first 3 letters of last name, year of birth, 6 digit,incrementing id number that starts at 1.

Member Avatar for NormR1
0
161
Member Avatar for bzmommy
Member Avatar for nsyncpilu

Did I post some code for this problem earlier somewhere? You need to use a String to generate the key. Look at what the classes in this code does: [CODE] // Create the key KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), iv, iterationCount); SecretKey key = SecretKeyFactory.getInstance(ALG).generateSecret(keySpec); [/CODE]

Member Avatar for nsyncpilu
0
442
Member Avatar for matt1117

[QUOTE] how to get the different letters from an inputted word to output as a number.[/QUOTE] Do you have an algorithm for converting the letters to a number? Can you give some examples?

Member Avatar for StephNicolaou
0
3K
Member Avatar for khaled_jawaher

[QUOTE]NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer[/QUOTE] Where is the missing class? Is there a missing jar file? Is the jar file with that class on the classpath?

Member Avatar for ~s.o.s~
0
566
Member Avatar for sirlink99

Do you have the format for the contents of a .rar file? Given that you should be able to extract its contents.

Member Avatar for sirlink99
0
1K
Member Avatar for javabeg123

@jazz_vill Why do you do the OPs homework instead of trying to help him learn to do it himself? You don't learn much copying and pasting. If you are going to post code, you should add enough comments to the code to describe your logic and what the code does …

Member Avatar for jazz_vill
0
110
Member Avatar for Daigan

[QUOTE]I don't know how to return the new arrays with the prefix.[/QUOTE] Please explain your problem. Do you really need all this code for coding a return statement?

Member Avatar for NormR1
0
181
Member Avatar for Unsated

See cross post at: [url]http://forums.devshed.com/java-help-9/homework-working-on-a-simple-banking-program-866261.html[/url]

Member Avatar for Unsated
0
425
Member Avatar for mrar85
Member Avatar for Mike Tyson

Do you have a design for the program? A list of things it needs to do. What items have you completed and tested and now having working? What items on the list remain to be done?

Member Avatar for stultuske
0
266

The End.