Login Password

snippets

Last 10 snippets with the tag: Java

0
favorites
0
comments
Avatar Image

Iterate through hashmap

This loop iterates through a hashmap. very simple. ...
posted by Christopher Krier 11 months, 1 week ago
0
favorites
0
comments
Avatar Image

Android Wheel component

Android Wheel component ...
posted by Ilya Bahdanouski 2 years ago
0
favorites
0
comments
Avatar Image

element exists?

A function to check if an element exists. (Hope i'll never forget) ...
posted by Christian Bachhelm 2 years, 3 months ago
0
favorites
2
comments
Avatar Image

Counts the frequency of a word in a file.

Reads a file from the command line, asks the user to input a word. Counts the frequency of the word in the defined file. (just part of an assignment in college.) ...
posted by Ciaran McNally 2 years, 6 months ago
0
favorites
1
comment
Avatar Image

Get cursor position of clicked mouse on a HTML5 Canvas

Javascript function to get mouse position on a HTML5 canvas element. ...
posted by Sayan Chakrabarti 2 years, 8 months ago
0
favorites
1
comment
Avatar Image

String.format() in JS a la Python

String.format() in JS a la Python Usage: var myString="My name is {0} and I am {1} years old" formattedString=myString.format(['sayan',27]) ...
posted by Sayan Chakrabarti 2 years, 8 months ago
0
favorites
2
comments
Avatar Image

JScript :: + operator

The arithmetic operator + is used to add values together. When operands are strings, which means a string concatenation happens. When the plus operator is used with a number and a string, the number gets converted to a string and then string concatenation is performed. ...
posted by DEEPAK PATIL 3 years, 1 month ago
bettercodes.org is released as free software without warranties under GNU Affero GPL v3