Welcome To Snipplr
Everyone's Recent Java Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A custom class for retrieving deliminated data from a (custom) MyString string.
        
        
        
            0 
        
        
            1011 
        
                    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 
        
        
            1505 
        
                    posted 15 years ago by studioevoque
            An example to make myself remember how powerful Java enums are!
        
        
        
            1 
        
        
            3546 
        
                    posted 15 years ago by studioevoque
            Don't forget the nifty event properties to detect double-click !
        
        
        
            0 
        
        
            1209 
        
                    posted 15 years ago by studioevoque
            A rough "it works" way to delete elements from an array given the array of indices to delete. A new array is created by copying over the remaining elements.
Any suggestions on how to make this more efficient appreciated :)
        
        
        
            0 
        
        
            1310 
        
                    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 
        
        
            2962 
        
                    posted 15 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 
        
        
            1308 
        
                    posted 15 years ago by itaiferber
            The player selects a range from 0 to n, remembers a number in this range and then the script asks the player a question trying to guess the number. The PC will always guess the correct number.\r\n\r\nI could have added more varied questions, but the...
        
        
        
            0 
        
        
            993 
        
                    posted 15 years ago by Sverri
            Remove the title bar from the activity.
(note : the title bar >< notification tray)
        
        
        
            0 
        
        
            981 
        
                    posted 15 years ago by funkypanda
            Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right alig...
        
        
        
            0 
        
        
            1289 
        
                    posted 15 years ago by adriamooney
            The Android ID (a unique 64-bit value) as a hex string. It is null on the emulator.
        
        
        
            0 
        
        
            967 
        
                    posted 15 years ago by Kingcron
            
