Welcome To Snipplr


Everyone's Recent Snippets Tagged java



1 2 3 4 5 6 ... 9
Installation .bin file must be modified: There's old commands than must be commented/deleted. The 'tail' command is changed (check the starting line for the binary data). Thanks Johan Louwers!
0 1335 posted 14 years ago by ashsa
0 1241 posted 15 years ago by hariharank12
0 1146 posted 15 years ago by evandrix
This snippet will allow you to read user's input when they write in the console. This method uses the Scanner class, which is my favorite way of doing instead of using the Buffered Reader, with the Scanner, you can also read from a file.
0 1351 posted 15 years ago by visudex
This snippet will allow you to capture your screen in Java and saves the image as a PNG
0 1288 posted 15 years ago by visudex
0 1302 posted 15 years ago by marti1125
A simple way to get the enum indicated by its ordinal value.
0 1533 posted 15 years ago by studioevoque
0 1016 posted 15 years ago by sinisterdeath
0 1213 posted 15 years ago by studioevoque
0 1267 posted 15 years ago by studioevoque
A "quick and dirty" way to delete a directory. For more cleaner implementation, see http://www.google.com/codesearch/p?hl=en#SS2by_AKaLs/src/org/apache/commons/io/FileUtils.java&q=cleanDirectory&l=972
0 1162 posted 15 years ago by studioevoque
An [example][id]. Then, **anywhere** else in the doc, define the link: [id]: http://example.com/ "Title"
1 2033 posted 15 years ago by dankauffman
0 1093 posted 15 years ago by trusktr
The AppDriver for my employee payroll app.
0 1047 posted 15 years ago by trusktr
A custom class for retrieving deliminated data from a (custom) MyString string.
0 1055 posted 15 years ago by trusktr
0 1140 posted 15 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 1592 posted 15 years ago by studioevoque
An example to make myself remember how powerful Java enums are!
1 3672 posted 15 years ago by studioevoque
Don't forget the nifty event properties to detect double-click !
0 1280 posted 15 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 3070 posted 15 years ago by trusktr
0 1055 posted 15 years ago by trusktr
Required libraries: http://hc.apache.org/downloads.cgi
0 1221 posted 15 years ago by cha0s
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 1380 posted 15 years ago by itaiferber
1 2216 posted 15 years ago by sospartan
0 1329 posted 15 years ago by smsmatrix
1 2 3 4 5 6 ... 9