int sum = a + b;
PS: a and b are int variables that must have been already declared and initialized.
Chat with our AI personalities
There is no need for a conditional expression; just write it as 10 * 100.
++x; x++; x += 1; x = x + 1;
You can use the Math.sqrt() method.
As a text, you can simply write "3%". For calculations, you will usually have to convert this to decimal, that is, 0.03, or 3.0/100.
WebSource.net is a distributor of tutorials that focus specifically on the Java platform. Programming a website in Java is a fairly advanced route to go, and it would serve you well to learn the basics of Java and how to code before taking a big step and building a site of your own.