Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what method can create folders?  RSS feed

 
Ola Kesh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
am almost done with my assignment but i seems to be stock with how to create folders with my java codes. can anyone hint me, please?
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might sound a bit odd, but you use the File class. There are mkdir and mkdirs methods for creating directorys. There is an exists method and a isDirectory and isFile to see if something is already there and what it is.
 
Ola Kesh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Steven,i have just checked it out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!