Item Title

Item Description

random question

14 years ago  #101
Level 28
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 4,961

A string is a type of object that consists of characters, and a loop, written like this:

for(int k=5; k>0; k--)

{ System.out.println("Slickster");

}

For this loop, 5 is the upper limit, and greater than 0(meaning 1) is the lower limit. It runs through the loop until k reaches 0, at which point it exits the loop. The result of that code would look like this:

Slickster

Slickster

Slickster

Slickster

Slickster

The for loop is the most commonly implemented loop, though another that is fairly useful is the while loop. In a while loop, a boundary is set, and once the boundary is crossed, the loop is exited. A simple one would look like this:

int k=5;

while(k>0)

{ System.out.println("Slickster");

k--;

}

As you may notice, the same parameters from the for loop are used, and it would have the same output as the one above as well.

Pros vs. Cons of while loop

=======================

Pro: a bit more easily manageable when dealing with nested loops(loops inside each other)

Pro: because the parameters aren't all required to be in the loop declaration, it's easier to use multiple variables without being forced to nest loops unnecessarily

Con: It's fairly easy to misplace or even leave out a parameter since they aren't grouped together so neatly

Con: real men use for loops, that is all

14 years ago  #102
Banned
Status: offline
Gang: Death Row
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 15,013

koryn u suck.

kthxbai

14 years ago  #103
Level 28
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 4,961

Originally posted by Demhelius koryn u suck.

kthxbai

Nooooooooooooose

14 years ago  #104
Banned
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 10 months
Posts: 4,695

does anybody know when the new gang thang is implemented,what will change?

14 years ago  #105
Banned
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 10 months
Posts: 4,695

bump damn it

14 years ago  #106
Level 28
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 4,961

If someone sends you a message and you delete it, does it still show as highlighted in their outbox or is it marked as read?

13 years ago  #107
Banned
Status: offline
Gang: Death Row
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 15,013

did the cash-open market just die today? O_O

13 years ago  #108
Level 35
Status: offline
Gang: LIVE WIRE
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 11,000

Originally posted by Demhelius did the cash-open market just die today? O_O

For good stuff probably

Click me for music!
13 years ago  #109
Level 27
Status: offline
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 10,409

red candles dont give an extra backpack slot??

13 years ago  #110
Level 35
Status: offline
Gang: LIVE WIRE
Prison: South Dakota
Incarcerated: 14 years, 9 months
Posts: 11,000

If im not mistaken you need 4 candles for an extra slot

Click me for music!

 

Quick Reply

You are unable to reply to this thread