Subscribe to MentalFloss Minutes        RSS Feed
- - - - -

Java : Chemical Formula Parser I

Icon Leave Comment
One interesting problem that has been rolling around in my head lately is the parsing of chemical formulas, such that the data can be represented in a meaningful way. Any time I have some kind of thing that I want to do, I first try to see how others have done it. I don't read the code hard enough to memorize it, and I don't copy what they...
- - - - -

[Novice] Slow Down

Icon Leave Comment
One thing that I have noticed in people asking questions on the board, and my fellow students in my Java course doing is taking the required project, and writing the whole thing all at once without ever trying to compile. When they complete the project, and try to compile, they are confronted with a plethora of errors. "I can't get it to...
- - - - -

Java : Solubility of Ionic Compounds in Water

Icon Leave Comment
...
- - - - -

Java : Temperature Converter

Icon Leave Comment
Branching off the idea in the Acid / Base program, this class takes the key and a value. Then it calculates the requisite values based on that key. At the end, you have an immutable class defined for a specific temperature. I recognize that the temperature converter program is normally a "newbie" programming exercise, but hopefully this...
- - - - -

Repost: Doing Your Homework

Icon Leave Comment
I am going through my blog entries to see what is useful or interesting these days that I can share with you. However, I don't want to maintain multiple blogs (the other blogs are focused on language, etc), so everything will probably just be moved to this one blog.

At any rate, here is an entry from back in 2013 talking about how you can...
- - - - -

Tricky Conditional Statements

Icon Leave Comment
So, one thing that comes up fairly often is difficulty in establishing the logic behind conditional statements. Disregarding the possibility of writing it simpler, how does one effectively ascertain this logic? Well, if the statements are checking numbers, one way is to draw number lines of each condition to see where overlap makes certain aspects...
- - - - -

Java : Acid / Base Program

Icon Leave Comment
A solution can be acidic, basic, or neutral. The measurements supported are pH and pOH. With a pH, the concentration of hydronium (H3O) can be calculated. With a pOH, the concentration of hydroxide (OH) can be calculated. Since all values can be calculated from one value, this class calculates upon construction. This can only be done with strong...
- - - - -

Java : HashMap

Icon Leave Comment
So, I've been getting into Java lately, and with that comes the daunting yet familiar process of getting up to speed with the paradigms, idioms, patterns, etc of the language. At any rate, I've always been fond of trying to bite off just a little more than I can chew. While I am not well-versed in data structure implementation, I've...

Page 1 of 1

May 2016

S M T W T F S
123 4 567
891011121314
15161718192021
22232425262728
293031       

Tags

    Recent Entries

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)