pidgeonpancakes's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
9 (0.01 per day)
Joined:
10-August 11
Profile Views:
325
Last Active:
User is offline Mar 25 2013 11:43 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Playstation
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

  • Photobrep Icon
    19 Sep 2011 - 13:47
Icon   pidgeonpancakes Learning...w00t!

Posts I've Made

  1. In Topic: I can't get a floating point number to calculate in a simple progr

    Posted 22 Mar 2013

    I just figured out a solution. I changed the formatting from %d to %s and that solved the problem.
  2. In Topic: How To Make a Pyramid in Java with While Loops

    Posted 16 Sep 2011

    Here's a solution my n00b mind came up with that works:

        String asterisk = "*";//String to print
        int printCount = 0;//Determines the amount of lines to print
        int asteriskCount =1;//Used to determine how many asterisks to print
        
        public void pyramidOut () {
            while (printCount <= 6) {         
                for (int x = asteriskCount;x != 0;x--) {
                System.out.print (asterisk);
                }//end Nested for loop          
                System.out.print ('\n');
                printCount++;
                asteriskCount++;
            }//end while loop
        }//end PyramidOut method   
    
    


    I hope this helps
  3. In Topic: Array element assignment question

    Posted 14 Sep 2011

    Thanks guys. I rewrote my code and I'm now getting my desired output. :)

    package test;
    
    import java.util.Random;
    
    public class TestArray{
        
        public static void main (String[] args) {
           
            int[] genLocationCells = new int[3];
            int sequence = 0;
            int numElement = 0;
            
            Random number = new Random();
            int value = number.nextInt(3);
            
            while (sequence < 3) {
                genLocationCells [numElement] = value;
                sequence++;
                numElement++;
                value++;    
            }// end while loop
            
            System.out.println (genLocationCells[0]);
            System.out.println (genLocationCells[1]);
            System.out.println (genLocationCells[2]);
        }// end Main method
    }// end class
    
    
    
  4. In Topic: Array element assignment question

    Posted 14 Sep 2011

    @pbl: For future reference in this case why is it better for me to to use the Random class instead of the Math class?
  5. In Topic: Question regarding the API

    Posted 8 Sep 2011

    Thanks guys! This helped my find what I was looking for.

My Information

Member Title:
New D.I.C Head
Age:
29 years old
Birthday:
March 29, 1984
Gender:
Years Programming:
0
Programming Languages:
Learning: Java and SQL

Contact Information

E-mail:
Private

Comments

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