yh im sorry im new and well im stupid so i kinda understand what you are saying but not fully if u get me but i trying to store the number when i top-up so when i go to purchase it will subtraction...
Type: Posts; User: shep
yh im sorry im new and well im stupid so i kinda understand what you are saying but not fully if u get me but i trying to store the number when i top-up so when i go to purchase it will subtraction...
Hey people im just wondering is there a way to store a number without using the non-void methods
heres my code my code works grand but i need to store the balence and by how much it was topped up by...
well it would be going down from the inputted number like if i inputted 24 and this program goes down in 3 then i would like it to 24,21,18,15,12,3,6,3,0 like that but i tried the i-- and i got an...
how do i reverse an order of numbers starting with the input and working it's way down
import java.io.*;
import java.util.*;
public class question4
{
public static void main(String[]...
so my code is right but do i have to set j = 1 ? please help im very confused
ok sorry here's the code and are sure about 1 not being a prime number
// File: Prime.java |
//...
can someone help me i'm trying to print out prime numbers starting with 1 but it doesn't print out 1 i know it maybe a stupid question but i can't seem to find out how to
Hello everyone i need help with a prime number program i'm getting a small error and don't know how to solve it
// File: Prime.java |
//...
i got it thanks for the help man
i understand but could u give me an example please
Thanks for replying but i don't know how to stop a do while loop or have an if statement so i can stop it please help me
Hey guys i need help i am trying to execute a do while loop and don't know how to do it properly and to stop the loop please help me
class Category{
public static void main(String[] args){
...
its ok it just solved it thank you
im sorry im new to this and im stuck at the end of my program and im trying to figure out a way how i can output messages eg If BOTH answers are NO output “You appear to like saying No!”
- If ONLY...
Ok here's the problem i have typed up most of the program and i cant get this little bit to work, cant think and this was a last resort
So i have to output an message of the last two questions:
-...
i know what the problem is but does anyone know how to add all the answers up at the end and say "Thank you, you entered 7 Yes and 3 No"
the error message is :variable answer11 might have not be initialized
Heres the program again
class Survey2{
public static void main(String[ ] args)
{
char yes = 'y', no = 'n', answer1, answer2, answer3, answer4, answer5, answer6, answer7,answer8, answer9,...
the error message seems to be that at line 155 System.out.println("To Question 11: Do you drink alcohol? Y/N : You answered"+" "+ answer11);
In the program i am suppose to have 10 questions for the user to answer and if the user answer less than 5 yes then i got to ask them to answer two more questions
Heres a zip file for the program and the class file
well here's the real program i have a couple of mistakes but i can sort it but not the error i keep getting
class Survey{
public static void main(String[ ] args)
{
char yes = 'y', no =...
im sorry i tried to copy the error messages but it would not let me but ill put up the keyboard.class do u know how to upload .class file i tried but it said unvalid file
Im trying to program a survey and one of the bits on my survey wont work and heres the little bit that wont work please help!!!
class jon{
public static void main(String[] args)
{
char...