Thanks colt!
I rewrote the code. Please comment on any mistake or improvement to get the "simplest" version of the code as I am still quite vague with your suggestions.
This version does not have the constructor with parameter I am learning.
What is the reason you said there is no need for the constructor here? Thanks!
Last edited by yifangt; 02-03-2017 at 01:45 PM..
Reason: Typo and modification
Hello everybody,
I have a problem about running a java class with a cron :
I have Cron.txt file which has :
0,5,10,15,20,25,30,35,40,45,50,55 * * * * CronJava.txt
I have CronJava.txt wihich has :
cd ias/j2ee/SapAktarim/applications/SapAktarim/SapAktarim/WEB-INF/classes/;java -classpath... (3 Replies)
Like class loader in java, can we make a function loader in shell script, for this can someone throw some light on how internally bash runs a shell script , what happenes in runtime ...
thanks in advance.. (1 Reply)
Hi,
Is it possible to call the constructur of a java class in a shell script?
I know you can call static methods, but can you also call the constructor?
tnx. (1 Reply)
Hi, everyone:
I'm trying to connect to DB using JDBC on fedora. I have successfully installed jdk and it's ok to run common java program.
The environment variables:
JAVA_HOME=/installed/mycoy/jdk1.6.0
PATH=$JAVA_HOME/bin:$PATH... (3 Replies)
Is anyone know how to write a class in separate file? While method does it needs to be contained in a printwriter class? Can I have the format of the printwriter class as a reference? Thanks a lot. (1 Reply)
Hi, I need help to Link array from one class to another class
Firstly CSVParser Class what it did is load csv file and store into array
Secondly WarehouseItem where each record is store
How can I get a list of array that I load to CSVParser Class and store them to WarehouseItem and... (0 Replies)
Hi,
I would really appreciate some help, I couldn't nail my problem:
I would like to create some setter and getter functions to make my life easier.
my sample file contains:
keyword - some tabs - value - semicolon
number 12.1;
float .3;
double 12;
real 12.2324;
stuff .234;
decimal... (5 Replies)
I am looking at a website to learn Java and this is one of the exercises.
Write a program that will show different time and date information based on what number you send it. The codes are:
0 - number of milliseconds since January 1, 1970
1 - number of seconds since January 1, 1970
2 -... (6 Replies)
Discussion started by: totoro125
6 Replies
LEARN ABOUT PHP
directoryiterator
DIRECTORYITERATOR(3) 1 DIRECTORYITERATOR(3)The DirectoryIterator classINTRODUCTION
The DirectoryIterator class provides a simple interface for viewing the contents of filesystem directories.
CLASS SYNOPSIS
DirectoryIterator
DirectoryIteratorextends
SplFileInfoSeekableIterator
Methods
o public DirectoryIterator::__construct (string $path)
o public DirectoryIterator DirectoryIterator::current (void )
o public int DirectoryIterator::getATime (void )
o public string DirectoryIterator::getBasename ([string $suffix])
o public int DirectoryIterator::getCTime (void )
o public string DirectoryIterator::getExtension (void )
o public string DirectoryIterator::getFilename (void )
o public int DirectoryIterator::getGroup (void )
o public int DirectoryIterator::getInode (void )
o public int DirectoryIterator::getMTime (void )
o public int DirectoryIterator::getOwner (void )
o public string DirectoryIterator::getPath (void )
o public string DirectoryIterator::getPathname (void )
o public int DirectoryIterator::getPerms (void )
o public int DirectoryIterator::getSize (void )
o public string DirectoryIterator::getType (void )
o public bool DirectoryIterator::isDir (void )
o public bool DirectoryIterator::isDot (void )
o public bool DirectoryIterator::isExecutable (void )
o public bool DirectoryIterator::isFile (void )
o public bool DirectoryIterator::isLink (void )
o public bool DirectoryIterator::isReadable (void )
o public bool DirectoryIterator::isWritable (void )
o public string DirectoryIterator::key (void )
o public void DirectoryIterator::next (void )
o public void DirectoryIterator::rewind (void )
o public void DirectoryIterator::seek (int $position)
o public string DirectoryIterator::__toString (void )
o public bool DirectoryIterator::valid (void )
CHANGELOG
+--------+----------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+----------------------------------------+
| 5.1.2 | |
| | |
| | DirectoryIterator extends SplFileInfo. |
| | |
+--------+----------------------------------------+
PHP Documentation Group DIRECTORYITERATOR(3)