oha055's Profile User Rating: -----

Reputation: 48 Craftsman
Group:
Active Members
Active Posts:
250 (0.12 per day)
Joined:
02-February 09
Profile Views:
3,955
Last Active:
User is offline Aug 17 2014 11:42 PM
Currently:
Offline

Previous Fields

Country:
NO
OS Preference:
Who Cares
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Nintendo
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   oha055 has not set their status

Posts I've Made

  1. In Topic: Rock, Paper, Scissors Program

    Posted 5 Jun 2014

    Also, instead of (userplay == "P" || userplay == "p"), you could do userplay.toLowerCase().equals("p"), so that you wont have to explicitly check for upper and lower case equality.
  2. In Topic: Please help with my java lab.

    Posted 14 Apr 2014

    It is the second constructor of the RateEstimator that is used in the Driver class, not the one you made. But it doesn't seem to be related to the problem, as the constructor being used seems to be in order.
  3. In Topic: Please help with my java lab.

    Posted 14 Apr 2014

    Your RateEstimator object is null. Could you post this class as well?
  4. In Topic: Please help with my java lab.

    Posted 14 Apr 2014

    Could you post your LifeRatesManagerDriver class?
  5. In Topic: Passcode program help

    Posted 14 Apr 2014

    After the user has entered the code, you could use substring(int beginIndex, int endIndex) to get the different parts of the code. This will make your life a little easier and your code more readable.

    String firstThreeDigits = code.substring(0, 3);

    and then check the string doing something like this:
    	// checks to see if string only contains numbers
    	private boolean isNumeric(String str) {
    		char[] arr = str.toCharArray();
    		for(char c : arr) {
    			if(!Character.isDigit(c)) return false;
    		}
    		return true;
    	}
    
    

My Information

Member Title:
D.I.C Regular
Age:
27 years old
Birthday:
January 20, 1987
Gender:
Location:
Bergen/Voss, Norway
Interests:
Computers, music, photography and beer
Full Name:
ěyvind Hauge
Years Programming:
6
Programming Languages:
Java, Objective-C, Ruby, PHP

Contact Information

E-mail:
Click here to e-mail me
LinkedIn:
no.linkedin.com/pub/°yvind-hauge/41/112/696/
Facebook:
http://www.facebook.com/oyvindshauge

Friends

Comments

oha055 has no profile comments yet. Why not say hello?