Welcome To Snipplr
Everyone's Recent Java Snippets Tagged java
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A custom class for retrieving deliminated data from a (custom) MyString string.
0
496
posted 13 years ago by trusktr
This is a modification of the Sun tutorial code that initializes the text editor to accept words that are not part of the auto-complete list. In the terms of the implementation, it is referred to as "not strict".
1
691
posted 13 years ago by studioevoque
An example to make myself remember how powerful Java enums are!
1
2174
posted 13 years ago by studioevoque
Don't forget the nifty event properties to detect double-click !
0
548
posted 13 years ago by studioevoque
Use this to read from a file. It is wrapped in a try/catch statement in case something breaks when trying to read the file. It will simply throw and exception (error) and continue rather than crashing your app.
0
1112
posted 13 years ago by trusktr
The solution to Project Euler [Problem 1](http://projecteuler.net/index.php?section=problems&id=1), written in Java as an example for my AP Computer Science class teaching internship.
1
563
posted 13 years ago by itaiferber
Using http://www.clapper.org/software/java/util/javadocs/util/api/org/clapper/util/classutil/ClassFinder.html in order to find a class in class path.
0
618
posted 13 years ago by narkisr
This is a snippet to validate anagrams of 'debit card'. It validates 'debit card' and 'bad credit'
0
472
posted 14 years ago by mangrar