• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hum...

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

You're right, I'll correct this right away!
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jean, very useful...
 
You showed up just in time for the waffles! And this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic