Good afternoon friends!
The following code is available:
class FileInfo { public static String NameFile; public static String TypeFile; public static int SizeFile; public static String DateCreate; public static String DateEdit; } And another class:
public class View_files_folders { public ??? getItem(int number) { } } - The first question is how to make the getItem function return the class FileInfo?
- The second question is, are there special date and time data types in Java, if so, which module should be connected? So that the DateCreate and DateEdit fields should not be made of type String if possible.
- How to make getItem return an object?