This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Private enum  RSS feed

 
Alexandru Petrosan
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
 
Sean Corfield
Ranch Hand
Posts: 326
16
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.
 
Tim Cooke
Marshal
Posts: 3872
233
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?
 
Dave Tolls
Rancher
Posts: 2914
36
  • 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: 2914
36
  • 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.
 
P Marksson
Ranch Hand
Posts: 41
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: 2914
36
  • 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: 41
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.
 
Campbell Ritchie
Marshal
Posts: 55711
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can probably find all those things in the Java™ Tutorials.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!