DaneAU's Profile User Rating: *****

Reputation: 286 Architect
Group:
Contributor w/DIC++
Active Posts:
1,617 (0.69 per day)
Joined:
15-May 08
Profile Views:
30,960
Last Active:
User is offline Oct 06 2014 02:49 AM
Currently:
Offline

Previous Fields

Country:
AU
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
225

Latest Visitors

Icon   DaneAU Workin Mmmm

Posts I've Made

  1. In Topic: Numbers pyramid * 2

    Posted 27 Sep 2014

    Each row of your pyramid is essentially a palindrome. You could use an method to create the rows based upon the number of the row. A method to create each row will assist. Something similar to the following - would be much nicer using recursion in lei of iterative methods

    public static String createPalindrome(int base, int len, String separator) {
    	
    	if(len == 0) return "";
    	if(len == 1) return ""+base;
    	String tmp = "";
    	
    	int counter = 0;
    	boolean reverse = false;
    	while(true) {
    		tmp += (int)Math.pow(base,counter) + separator;
    		
    		if(!reverse) {
    			++counter;
    		} else {
    			--counter;
    		}			
    		if(counter == len) reverse = true;
    		if(counter < 0) break;
    	}
    	return tmp;
    }
    
    


    Then to create one of your rows invoke the method System.out.println(createPalindrome(2,5," ")), creating a palindrome using base 2 and a maximum of 5.
  2. In Topic: triangle array

    Posted 27 Sep 2014

    looks like temperatures[i][m] = in.nextFloat(); is not receiving the input it requires... i.e. floating point data.
  3. In Topic: Telnet - Terminal and Function Keys (F3)

    Posted 21 Jul 2014

    Hi Valek, thanks for the response in relation to this issue. Thankfully I no longer have to resolve this issue as I moved jobs. In the end the issue was believed to be on the server, rather than the client and was left on the basis of the vendor configuring the server and investigating it from that angle. This issue was not related to any one distribution, as a number were sampled aside from Mint including CentOS, Fedora & Debian.

    I really appreciate your response. Thanks :)
  4. In Topic: generate random doubles within certain value ranges?

    Posted 25 Apr 2014

    Create your function and pass min and max as arguments, then use rand() and some calculations and casting to double to return a value between your specified range.
  5. In Topic: Maven vs Gradle?

    Posted 15 Apr 2014

    You are not being Picky, it needs to gather some momentum.

    On a side note, soon your Rep will read L337, so i think it would be rich of me to put down your liking of Gradle :P

My Information

Member Title:
Great::Southern::Land
Age:
30 years old
Birthday:
August 4, 1984
Gender:
Location:
Australia
Interests:
Surfing, coding and chillin out
Full Name:
Dane Leckey
Years Programming:
3
Programming Languages:
Java, C, C++, C#, PHP, SQL, Perl, Haskel umm probably more, some ruby for good measure.

Contact Information

E-mail:
Click here to e-mail me
MSN:
MSN  dane.leckey@gmail.com
Website URL:
Website URL  http://www.techturf.com.au
Skype:
Skype  dane.leckey
LinkedIn:
http://www.linkedin.com/pub/dane-leckey/4b/b46/576
Facebook:
http://www.facebook.com/dane.leckey
Twitter:
Dane_AU

Comments

Page 1 of 1
  1. Photo

    fromTheSprawl Icon

    30 Sep 2011 - 01:55
    Duplicate friends though, it would be nice to have a double of friends so that if one is going somewhere far the other one could stay, hahaha
  2. Photo

    fromTheSprawl Icon

    29 Sep 2011 - 23:41
    But that would be like complaining to Bill Gates Microsoft Office crashed, haha. I think you're good friends but we're not and I'm not a paying customer so there ^^
  3. Photo

    fromTheSprawl Icon

    28 Sep 2011 - 23:44
    Hey there dude, thanks! Though right now the prophecy is still unfulfilled. It's strange, you appear 2 times on my friends list.
  4. Photo

    atlu Icon

    06 Dec 2010 - 09:51
    hiiiiiiiiii
  5. Photo

    Alex6788 Icon

    17 Nov 2010 - 08:59
    Ha ha yep :-)
  6. Photo

    DaneAU Icon

    19 Feb 2010 - 21:48
    Oh wow ^^
  7. Photo

    Raynes Icon

    17 Feb 2010 - 01:53
    You can add Haskell to your list of Programming Languages now, you prize winner you. :p
Page 1 of 1