Click here to Skip to main content
15,890,825 members
Home / Discussions / Java
   

Java

 
QuestionDigital Image Detection Pin
nasiraftab8-Mar-09 21:32
nasiraftab8-Mar-09 21:32 
AnswerRe: Digital Image Detection Pin
Nagy Vilmos9-Mar-09 23:38
professionalNagy Vilmos9-Mar-09 23:38 
QuestionTrouble with my loop ~I think Pin
Bactos8-Mar-09 11:35
Bactos8-Mar-09 11:35 
AnswerRe: Trouble with my loop ~I think Pin
fly9049-Mar-09 0:34
fly9049-Mar-09 0:34 
GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 6:52
Bactos9-Mar-09 6:52 
GeneralRe: Trouble with my loop ~I think Pin
fly9049-Mar-09 9:30
fly9049-Mar-09 9:30 
GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 11:19
Bactos9-Mar-09 11:19 
GeneralRe: Trouble with my loop ~I think Pin
fly9049-Mar-09 12:06
fly9049-Mar-09 12:06 
With debugging you go through the code line by line and have a look at what the variables values are.

Generally in a for loop when you declare the variable it shouldn't be used elsewhere.

The convention is normally to use "i" but it is not necesserily the case all the time.

Bactos wrote:
for (int payCounter =0; payCounter => 359; payCounter++)


Should be:
for (int i = 0; i < 360; i++)


As the loop will only run while i is less than 360 rather than payCounter having to be greater or equal to 359 which would never execute the loop as it starts as 0.

hmmm pie

GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 14:41
Bactos9-Mar-09 14:41 
GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 15:33
Bactos9-Mar-09 15:33 
AnswerRe: Trouble with my loop ~I think Pin
Reagan Conservative9-Mar-09 9:03
Reagan Conservative9-Mar-09 9:03 
GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 11:33
Bactos9-Mar-09 11:33 
GeneralRe: Trouble with my loop ~I think Pin
Bactos9-Mar-09 15:34
Bactos9-Mar-09 15:34 
Questionconversion of a color image into a black white image Pin
sudipkumar036-Mar-09 22:23
sudipkumar036-Mar-09 22:23 
JokeRe: conversion of a color image into a black white image Pin
fly9047-Mar-09 8:38
fly9047-Mar-09 8:38 
GeneralRe: conversion of a color image into a black white image Pin
sudipkumar0316-Mar-09 20:12
sudipkumar0316-Mar-09 20:12 
AnswerRe: conversion of a color image into a black white image Pin
fly9047-Mar-09 8:42
fly9047-Mar-09 8:42 
QuestionRead Incoming SMS Pin
Nitharshan6-Mar-09 19:34
Nitharshan6-Mar-09 19:34 
RantRe: Read Incoming SMS Pin
fly9047-Mar-09 9:04
fly9047-Mar-09 9:04 
Questionusing COM objects from Java that runs on SUN Java VM under MS platforms Pin
Varghese Paul M6-Mar-09 16:12
Varghese Paul M6-Mar-09 16:12 
QuestionHelp with adding url to form input after .value Pin
steelwidow5-Mar-09 7:12
steelwidow5-Mar-09 7:12 
AnswerRe: Help with adding url to form input after .value Pin
Curtis Schlak.5-Mar-09 10:57
Curtis Schlak.5-Mar-09 10:57 
QuestionCode to extract a pixel from video stream Pin
Jincy C J4-Mar-09 20:06
Jincy C J4-Mar-09 20:06 
AnswerRe: Code to extract a pixel from video stream Pin
Smithers-Jones11-Mar-09 23:00
Smithers-Jones11-Mar-09 23:00 
Questionreading Pixel value from a image [modified] Pin
sudipkumar034-Mar-09 19:48
sudipkumar034-Mar-09 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.