About Question enthuware.ocpjp.v7.2.1216 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1216 :

Post by The_Nick »

Leading period/dot characters in file name are treated as regular characters in match operations. For example, the "*" glob pattern matches file name ".login". The Files.isHidden method may be used to test whether a file is considered hidden.
In globbing, "." is always considered as a characther right? not only when it's a leading character in a filename, isn't it?

The_Nick.

Online
admin
Site Admin
Posts: 10067
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1216 :

Post by admin »

What do you mean by "always"? Do you have a specific case in mind?
-Paul.
If you like our products and services, please help us by posting your review here.

The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1216 :

Post by The_Nick »

*.{java,rtf}
Here for example "." it's not leading but it's in the second position.
The_Nick.

Online
admin
Site Admin
Posts: 10067
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1216 :

Post by admin »

Try it out :) See if *.{java,rtf} matches some file named filejava
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: admin and 195 guests