lledo3's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
23 (0.02 per day)
Joined:
28-February 11
Profile Views:
646
Last Active:
User is offline Sep 17 2013 07:41 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Toyota
Dream Kudos:
0

Latest Visitors

Icon   lledo3 has not set their status

Posts I've Made

  1. In Topic: Multi-Array Problem

    Posted 17 Aug 2013

    Axel1994 thank you for taking the time to literally break it down in simple language and using examples. I'm more of a visual learner. If I see more examples of certain lines of code broken down it makes sense. THANK YOU!!!
  2. In Topic: Multi-Array Problem

    Posted 16 Aug 2013

    Okay, I understand how a for loop works. What I want to know is what value: twoD[i][j] gets assigned to k each time the loop is ran before the incrementation of k?
  3. In Topic: Multi-Array Problem

    Posted 16 Aug 2013

    Here is the a screenshot of the book where I got this from. I am still trying to make sense of the first question I asked:
    Attached File  Screen shot 2013-08-16 at 3.25.13 PM.png (314.85K)
    Number of downloads: 2

    The second screen shot:

    Attached File  Screen shot 2013-08-16 at 3.25.38 PM.png (293.98K)
    Number of downloads: 2
  4. In Topic: Multi-Array Problem

    Posted 16 Aug 2013

    First Question:

    So is safe to say that by declaring twoD[4][] with a number of 4 rows the program automatically assumes that you will declare the columns manually?

    Second Question:

    I understand the assignment statement just wrote it the wrong way.
  5. In Topic: Multi-Array Problem

    Posted 16 Aug 2013

    This is not a homework question or test problem. This is for practice. I actually found this problem out of the complete java reference book.

    My first question: when twoD is declared, it allocates a 4 by null array. How does the program know that second array bracket is being allocated manually?
    int twoD[][] = new int[4][];
    twoD[0] = new int[1];
    twoD[1] = new int[2];
    twoD[2] = new int[3];
    twoD[3] = new int[4];
    
    


    My second questions: what data is actually getting assigned to k from twoD[i][j]?
    for(i=0; i<4; i++)
         for(j=0; j<i+1; j++){
    		twoD[i][j]=k;
    		k++;}
    
    

My Information

Member Title:
New D.I.C Head
Age:
32 years old
Birthday:
February 20, 1982
Gender:
Interests:
Music, Music Studio Installations, Drums, iPhone Application Development, Audio Plug-In Developement, Web Development
Full Name:
Henry
Years Programming:
3
Programming Languages:
Learning: Java, Objective-C, HTML, CSS, Javascript, PHP, VB

Contact Information

E-mail:
Private
AIM:
AIM  ESkillz123
Yahoo:
Yahoo  ESkillz123

Friends

lledo3 hasn't added any friends yet.

Comments

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