32,199 Topics
| |
guys i am working on a small software in which frame appear thats show a image that your drive c is damaged and than another frame by 6sec delay show a "just kidding" image.now i want to connect this program with my usb so that when ever i plug in … | |
How do I create an Instant Messenger Program using Java? I want to create an Instant Messenger Program using Java, and I dont have a clue where to start, so if someone can please help me, that would be great. Thank You, Andrew Davis | |
i am create one application. i am delete one pin number(that status change to 'D'). After i am return back to main frame the deleted pin number is also displayed. once i am quit my application and start then the deleted pin number is not displayed. but i want do … | |
hello friends, I have a file _ant_compile.cmd which i need executed from a java program, here I have two questions to resolve, 1. when I try the method attached in the file, the program launches in the same window, and halts without proceeding but when I use the second method … | |
hello guys, i am very new here. [CODE]public class quiz{ public static void main (String args[]){ for (byte i = 1; i <= 5; i++){ for (byte j = 1; j <= i; j++){ System.out.println(i); } System.out.println(); } } }[/CODE] I can't simply explain that code. and it gives me … | |
im writing a Coin program that tells the user to input a integer between 1 and 99..and reads back how many quarters, dimes, nickels, and pennies back. this is what i have. import java.util.Scanner; public class Main { public static void main( String[] args ) { Scanner input = new … | |
Pretty much i can convert from infix to postfix really well and that is nto the problem i need help with the postfix evaluation also i dont think my evaluate method is correct i have two push methods, one for char and one for int. i really am stuck and … | |
Hi, I have a java program with quite a lot of classes. I'm facing a problem with accessing some variables from another class. May I know how to I access it? Is it possible? | |
The basic difference would be interface cannot have any method definition or variables declared while an abstract method can have them. Now what is the difference between an abstract class and an interface when they contain only the method signatures in them. In what situations will you use either of … | |
I unable to find java softwares in net can you tell me sites downloading softwares like flash slide show maker, video editor, video converter for java in linux. | |
[CODE]import java.io.*; public class Test { public static void main(String[] arg){ Console console=System.console(); String chessPiece=""; int rowEnd=0; char columnEnd = ' '; System.out.println("what piece do you want to move?"); chessPiece=console.readLine(); System.out.println("where do you want to move it to?(type column letter)"); String input=console.readLine(); columnEnd=input.charAt(0); System.out.println("where do you want to move it … | |
Hi everyone, How do I create a timer in Java? It's for a quiz I'm making and I want a time limit for each question. | |
[CODE] import java.util.Scanner; class apples { public static void main(String args[]){ System.out.print("Hello, today I'm going to give you a quiz. \nWhat's your name?\n"); Scanner name = new Scanner(System.in); System.out.print(name.nextLine()); System.out.print(" Is a nice name.\nToday I am going to test your knowledge.\nLet's begin!\n"); int score = 0; System.out.print("Who is Bill Gates?\n1. … | |
Hello, I know this question might sound stupid! I am using recursion inside a loop. I want to stop the loop as soon as the method is called recursively and resume it again when the call returns. I am not able to do so. Do I need to lock the … | |
here is my code [code]import javax.swing.*; import java.text.DecimalFormat; class method { private static void start() { JOptionPane.showMessageDialog(null," Area of a Circle"); String n = JOptionPane.showInputDialog(null,"Enter a Number"); int num = Integer.parseInt(n); DecimalFormat twoDigit= new DecimalFormat("0.00"); double form1 = 3.14 * (num*2); JOptionPane.showMessageDialog(null,"… is "+twoDigit.format(form1)); } public static void main(String[] args) … | |
Hi, My java is really bad and I haven't had to use it in a few years but I want to make it better so I've decided to try building it up slowly but at the moment I'm a little stuck and was wondering if anyone could help point me … | |
Hello everyone, I am having trouble finishing my program. I am having the most trouble with the method, as described in my book, parseInt(char[]). I can't figure out what to do, I don't know how to properly write the method for this. I will include the entire program description for … | |
what is the difference between instance variable and methods and their counterparts,clas variable and methods? i understood that instance is other name for object but what i have undersood till know is that method is somewhat like function (but i could not understand the explaination given for this question in … | |
Once again I need help with my Java program. I am running out of time to complete this program and I accidently deleted what work I had done. I am going to try to edit this post with what I have tomorrow but until then I was hoping someone could … | |
I am getting the following error message and do not know what it means. error: Class names, 'DemoVariables' , are only accepted if annotation processing is explicitly requested. | |
Hello, so i have a RectangularRoom, AbstractRoom (which is an abstract class) and Room (which is an interface). AbstractRoom and RectangularRoom both implement Room. Within my HomeCADengine (which is where my addRoom/removeRoom/etc. methods are kept). Now, my addRoom method seems to be a problem. I am trying to add a … | |
Just started learning java and i'm having a little trouble with my compiling im supposed to give a screen shots of my outputs if it works but vista is blocking it (asks for permission and then just hangs) ive included the questions just in case its being bleh but it … | |
I have been trying to compile a program for school using textpad, but i am unable to find the sdk tool that is supposed to be in the tools window.i have installed the java 6 jdk/jre, then text pad ( multiple times and ended up with the same results. when … | |
Hello, I'm working on an assignment due next week and I'm having quite a bit of trouble. The program is to ask the user for input of a double until they desire to stop. That part, I imagine will be in the Test file. The master file is to store … | |
Using the following: [CODE] protected void testDriver ( ) { String drivers = "nada"; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); } catch ( java.lang.ClassNotFoundException e ) { System.out.println("MySQL JDBC Driver not found ... "); } catch (IllegalAccessException ex) { System.out.println("Illegal Access"); } catch (InstantiationException ex) { System.out.println("Instantiation problem"); } System.out.println("Midway drivers are " … | |
I have been using textpad and Java for 3 months without trouble. We just got a new computer 64 bit Windows 7. I have downloaded Java and Textpad on the new computer but when I go to external tools to compile, the compile and run tools are missing. I have … | |
Hi! Sorry for my bad english. How is made that toolbar on this site always stays on the botom of the page. (So, when we log in, on this site will appears toolbar. When we scroll down, this toolbar stay, it doesn't move anywhere, it stay on the bottom.) | |
Hi! I need to make multi-user software that will allow accessing a DB from different PCs and working with this DB. Could someone pliz just generally (conceptually, but in step-wise manner) describe me how this task can be implemented? Maybe, there are some good tutorials or free examples on this … | |
i want to import an array, but i cant.. i have my chess class.. and one method that tries to check whether there is a check. basically like this.. [CODE] if(pieces[columnStartN][rowStartN].isMoveValid(columnStartN,rowStartN,columnEndN,rowEnd) && pieceDevour){ pieces[columnStartN][rowStartN]=null; pieces[columnStartN][rowStartN]=pieces[columnEndN][rowEnd]; } rowStartN=rowEnd; columnStart=columnEnd; int kingRow=0; int kingColumn=0; chessPiece="BKing"; int c=0; int pieceColumn=0; int pieceRow=0; for(int … | |
I want to fetch data from msaccess database using like. but my query not run. Here is my code.[CODE]String pin=cmblocation.getSelectedItem().toString(); rs2=st2.executeQuery("Select * from pin_numbers where pin_number like 'pin&????'");[/CODE]. But my query is not run. Please help me. |
The End.