• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mistakes  RSS feed

 
Sabina Belyaeva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,I have some problems with my code.
My code should do this e.g. wsd(1776) = 1 * 1 + 7 * 2 + 7 * 3 + 6 * 4 = 60
But it doesn't compile, help me please to find nistakes

 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly is the compiler error?  Believe it or not, those error messages tell you a LOT about what's wrong. Learning how to interpret them is a valuable skill that will serve you well.

Post it here to make it easier for us to help you, and i'm sure you'll get all the help you need.
 
Knute Snortum
Sheriff
Posts: 4279
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saying "it doesn't compile" isn't very helpful.  What is the error message?  What line?  Which class?
 
Paul Clements
Ranch Hand
Posts: 99
1
Chrome Eclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiles for me. Just not sure what it's meant to be doing. Think you need to give some details.
 
Wesley Grove
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would also be nice if you changed the name of the thread to something more informative so it's easier to figure out if we can help you.
 
Sabina Belyaeva
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, I'm really sorry, I have also probems with explaining my thoughts in English(It's not my native language) and of course I did say nothing helpful for helping me to solve this problem.
Probably, I should say that my code just doesn' t work. When I run this code and enter numerical values they always disappear. The compiler doesn't show any mistake and I don't know what to do.
Thank you a lot for pointing out my mistakes it's very important and helpful for me!
 
Campbell Ritchie
Marshal
Posts: 56541
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does vizov mean? Don't give a class and a method such similar names (Vizov/vizov). What do you expect to happen and what actually happens? What do the variables n k pussy etc mean? Why are you using <= in line 11 and >= in line 8? What do you want to happen if the values are equal?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!