@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> salam
<1> bologne
<2> where can i find a method that checks how many files, or how many of a kind of file, in a directory??
<3> on a cl*** dealing with File's I image.
<3> imagine.
<4> File
<4> list() in fact
<5> FileFilter
<4> FileFilter is a UI component mainly



<4> depends wht he needs I guess
<4> I'd use File.list() and iterate over the array returned counting directories/files. No doubt there are other ways
<5> smsie: lol
<5> roffles
<5> "(smsie): FileFilter is a UI component mainly"
<4> javax.swing.filechooser.FileFilter
<5> FileFilter is a 'utility' cl*** for File
<4> FileFilter is an abstract cl*** that has no default implementation. A FileFilter, once implemented, can be set on a JFileChooser to keep unwanted files from appearing in the directory listing.
<5> smsie: frightening
<4> the only other FileFilter in the API is an interface (unless I'm just not finding it)
<5> you really don't know your JDK do you?
<2> thanx everyone, solved it already.....
<2> :)
<5> that's because you provide an inline implementation
<4> I'm happy to be educated
<4> the only method mandated by the FileFilter interface is accept(). I'm not seeing how that helps him (but I'm willing to be enlightened)
<4> ah, I see
<4> hmmm...
<4> I'd have to go away and look at how that works
<5> I'm looking for a good tutorial
<5> so I don't need to type sample code :)
<5> http://free.netartmedia.net/JAVA/JAVA4.html
<5> that's ok(ish) for a random code snippet
<4> yeah
<4> so define two of them, one for directories and one for files?
<5> that's better
<5> here we go
<5> http://www.jzoo.com/java/wildcardfilter/
<5> there is an incorrect comment on that page too
<5> regarding the JDK Bug
<5> it's referring to the swing FileFilter
<4> easy to confuse them I guess :)
<4> I did



<6> yeah but...
<6> you ****! ;)
<6> yewah, I should go to sleep too..
<4> wlfshmn: very true :)
<7> hello
<8> morning
<9> jottinger.
<8> how's it going
<3> 'lo
<10> somebody can help me??
<10> ive an ask
<3> so ask
<10> im making a program, and I need make a input for a string in my program
<10> i wanna my program wait for an input
<8> pretty easy
<10> how i can do it?
<4> depends on java version
<10> 1.4
<4> can't use a Scanner then
<4> try using a BUfferedInputREader tied to the System.in stream
<10> may be
<4> BufferedReader b=new BufferedReader(new InputStreamREader(System.in)); String theInput=b.readLine();
<4> something like that
<10> hmm
<10> im gonna test it
<10> its correct smsie ?
<3> try it and see
<4> notlaughing: it's an idea...it's not necessarily correct code, it's a sketch
<4> it is *roughly* what you need I think
<10> ah ok, tahnks
<4> console input in Java is a pain without Scanner
<10> yes xD
<4> I guess the language wasn't really designed with console interaction in mind :)
<10> :)
<8> thank god
<8> no language was, though
<4> true
<0> sala;
<0> m*


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

#AllNiteCafe
#AllNiteCafe
diening what is it eating
#AllNiteCafe
silverchair clipsal torrent
pedofla
parapap
#c
ip over san
weird al caps lock



Home  |  disclaimer  |  contact  |  submit quotes