Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Java code to test if a string is a valid java identifier.

    public class IdentifierTest { /** * @param args the command line arguments */ public static void main(String[] args) { for(String arg : args) { boolean start = true; boolean validIdentifier = true; arg.toCharArray() // commenter pointed out my error //for(byte b : arg.getBytes()) { for(char b : arg.toCharArray()) { if(start) { validIdentifier = validIdentifier &&…

    November 11, 2010
  • Do you really want me as a customer?

    Don’t make me log in or create an account just to place my order. Don’t make me do a password reset just because I haven’t logged in and I’ve forgotten my password.  If you absolutely insist on doing a password reset, do this instead: Take my email and password + repeat password, regardless of whether…

    October 30, 2010
  • Everything in math comes down to calculus

    Everything else is a generalization. Take, for example, the formula for the area of a rectangle: In reality, this is the result of the equation: Where the length of the rectangle lies along the y-axis, and the width along the x-axis See? Isn’t that simple, and a much more accurate representation of the area of…

    October 18, 2010
←Previous Page
1 … 100 101 102 103 104 … 317
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress