• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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...
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic