Yes this was answered in my crosspost. I needed to use mkdirs() instead of mkdir() to actually create the missing directories. Thanks for the help.
Type: Posts; User: dalythe
Yes this was answered in my crosspost. I needed to use mkdirs() instead of mkdir() to actually create the missing directories. Thanks for the help.
It refers to the home directory. I did a JOptionPane.showMessageDialog(null, path) and it indeed show me the correct path. It just don't create the path. new File(path).mkdir() actually returns false...
What I did check is that the string that I supplied to the new File().mkdir() is indeed the directory I needed to create. I don't quite understand checking the return value of mkdir().
Well my destpath is made up of the user's home directory and the Test name.
String dtpath = new JFileChooser().getFileSystemView().getDefaultDirectory().toString();
String destpath = dtpath +...
I am trying to simply create a directory, but my code just will not accomplish it. It doesn't give me any errors but it doesn't create the directory neither. I thought that new File(path).mkdir();...
I tried this and it was acting as if I didn't import Date class.
--- Update ---
I imported java.text.* and java.util.* and I get a red exclamation mark stating that it cannot find Date()...
I have a single file copy that I want to record the start time and the finish time for. The code below indeed provide me with time, but the start and finish are the same. I know for a fact that it...
I did. I mentioned that I gave it an empty set as a value. Before, I had just declared it with the rest of my instance variables. It still gave the same results, null.
This is what printed:
pData=
Exception in thread "AWT-EventQueue-0" java.util.IllegalFormatConversionException: f != java.lang.String
at...
I deleted the line System.out.println(pData); that printed the "nu" value. I gave pData a empty set value initially, ran the code from post #9, and I got the following error:
Exception in thread...
Obviously nothing. I think the compiler is having a problem with the format specifiers that I used on prtData. It is still saying nu.
1914
Now if I take the attempt to format out of the code I...
The String variable pData is "supposed" to contain the formatted Strings. This is the variable I appended to my StringBuilder.
prtData = printArray();
pData = String.format("%8.2f%n", pData);...
After inputting my values for the array, I hit my button and it produces this output in the TextArea:
***************************************************
Raw Tutoring Earnings Data
nu
...
I'm not per say getting an error message but it is showing nu in the TextArea where the format contents supposed to appear. Here are the changes I tried :
private void...
Once I append the results of the loop to the variable, its like I can't format it. I tried using String.format() with prtData being my String that I am trying to format. prtData contains the contents...
I created a method to iterate through my array and collect all the values. I then appended the results to a String variable. When I append the variable to the TextArea, it shows all the values in one...