• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
 
Sheriff
Posts: 4573
286
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: 3757
40
  • 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: 3757
40
  • 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: 3757
40
  • 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: 61756
193
  • 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!