Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Private enum  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this code I don't know how to continue this code.Please help!
I've tried to apply it from this site https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
 
Rancher
Posts: 334
18
Clojure Linux Mac OS X Monad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alexandru, are you trying to convert this code to Clojure? Or call it from Clojure?
 
Alexandru Petrosan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sean Corfield wrote:Hi Alexandru, are you trying to convert this code to Clojure? Or call it from Clojure?


I'm trying to complete this code,I don't think I need this Clojure.
 
Marshal
Posts: 4454
284
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean asked because you'd posted your question in the Clojure forum. I've moved it to the 'Beginning Java' forum.

On the topic of posting questions, you don't appear to have asked one. What exactly are you having trouble with?
 
Rancher
Posts: 3595
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a continuation of this thread?
http://www.coderanch.com/t/661670/java/java/Creating-file-manager-Java
 
Alexandru Petrosan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:Is this a continuation of this thread?
http://www.coderanch.com/t/661670/java/java/Creating-file-manager-Java


yes
 
Alexandru Petrosan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Alexandru Petrosan wrote:

Dave Tolls wrote:Is this a continuation of this thread?
http://www.coderanch.com/t/661670/java/java/Creating-file-manager-Java


yes


I'm trying to apply this code properly
 
Dave Tolls
Rancher
Posts: 3595
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not entirely clear, though, what you are trying to achieve.

Which bit of your task are you doing?

The code bits you've posted here don't really show your issue.
 
Ranch Hand
Posts: 44
1
 
Alexandru Petrosan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

P Marksson wrote:http://stackoverflow.com/help/how-to-ask

Can somebody give me a proper code/method for moving,copying,listing,renaming and deleting a file/folder?
 
Dave Tolls
Rancher
Posts: 3595
39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said over at Java Forums, you need to take this one step at a time.

Have you got code to ask the user what task they want to perform?
Have you got code that takes the users input and calls a method to do that task (the method doesn't have to do anything other than output the task name)?

Then take each task, one at a time, and work on that.

You will not get a code dump.
 
P Marksson
Ranch Hand
Posts: 44
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Alexandru Petrosan wrote:

P Marksson wrote:http://stackoverflow.com/help/how-to-ask

Can somebody give me a proper code/method for moving,copying,listing,renaming and deleting a file/folder?


Ok, since you need stuff like creation date, java.io.File wont be sufficient. Have a look at the java.nio package. Basically, all your questions can be found on google.

The object that represents a file on disk is java.nio.file.Path. You can create an instance of it with Paths.get.
With a Path instance, you can pass it to utility methods in java.nio.file.Files. And so on.
 
Marshal
Posts: 59700
187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can probably find all those things in the Java™ Tutorials.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!