Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Mistakes

 
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

 
lowercase baba
Posts: 12753
51
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.
 
Sheriff
Posts: 6114
157
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • 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?
 
Ranch Hand
Posts: 99
1
Eclipse IDE MySQL Database Chrome
  • 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.
 
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!
 
Marshal
Posts: 65082
247
  • 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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!