LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   completing java procedure (https://www.linuxquestions.org/questions/programming-9/completing-java-procedure-804865/)

teresevo1 04-28-2010 10:15 PM

completing java procedure
 
Can anyone help me to complete the java procedure below?

/** Obtain an output file name from the user and print on it
all the strings in array b, each on its own line.
If the user cancels the dialog to find the file name,
print a message and return. */

public static void writeFile(String[] b) {



}

graemef 04-29-2010 12:11 AM

yes but if you are going to learn anything you should make more of an effort...

paulsm4 04-29-2010 12:12 AM

Hi -

Q: Is the a homework assignment, or an "exam cram" practice question?

Q: How much of the code have you written so far? Can you post it?

PS:
If you're totally stumped, you might want to Google for "Java swing tutorial" or "JoptionPane" - that might at least get you started on the "user input" part...


All times are GMT -5. The time now is 03:16 PM.