Oh no I understand it. It was that I had my if statement in the event handler in another if statement so it wouldn't work. And yes I figured it out. But since I have your attention. I have one more...
Type: Posts; User: shep
Oh no I understand it. It was that I had my if statement in the event handler in another if statement so it wouldn't work. And yes I figured it out. But since I have your attention. I have one more...
Well I'm sorry I usually figure things out when I ask them. So sorry man. But I was stuck on it for a couple of hours.
How can I add an Item to a Combobox by using a JTextfield?
Yeah sorry i am referring to Swing. I tried to do that but it won't. Could you provide a small bit of code please.
--- Update ---
Sorry just figured it out but I have another question. How do I...
Question: How can I add an Item to a combobox when I click a button?
Thanks I figured it out :)=D>
Then how can I call the other method from another class?
Hi Guys, Is it possible to go from one method to another when a jbutton is clicked? Or is there another solution. Please Help.
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