aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Little tool to check your assignement structure (folder+file) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Little tool to check your assignement structure (folder+file)" Watch "Little tool to check your assignement structure (folder+file)" New topic
Author

Little tool to check your assignement structure (folder+file)

Jean Vilart
Greenhorn

Joined: Aug 03, 2007
Posts: 6
Hi ranchers,

To make sure I will avoid spelling errors when I will submit my assignment, I wrote a little class to test some of the "must" I had in my assignment.

This small Java class only checks the filenames and the names of the folder for spelling mistakes.

There is much room available for improvement. But that is one of the reason, I send it here. If every javarancher can make one little improvement, we could have a fantastic tool to avoid stupid mistakes that cause automatic failure.

Anyway, here is the code, please make any improvement that you may find suitable.

I think the next step will be to check for a jar file in addition to a folder.



[ September 06, 2007: Message edited by: Jean Vilart ]
[ September 07, 2007: Message edited by: Jean Vilart ]
Andre Winkler
Greenhorn

Joined: Nov 10, 2005
Posts: 5
I have some corrections:

private static final String DB = "suncertify/db/DB.java";
private static final String DATA = "suncertify/db/Data.java";

My assignment expects a seperate code directory:

private static final String DB = "code/suncertify/db/DB.java";
private static final String DATA = "code/suncertify/db/Data.java";
Jean Vilart
Greenhorn

Joined: Aug 03, 2007
Posts: 6
hum...

even in a little piece of code like this I manage to introduce bugs

You're right, I'll correct this right away!
David A. Scott
Ranch Hand

Joined: Apr 13, 2006
Posts: 55
Thanks Jean, very useful...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Little tool to check your assignement structure (folder+file)