32,204 Topics
| |
i want to get records from msaccess when the pin number start from 'twt000'. I am using one variable name is pinnumber to store the value. [CODE]String pinnumber='twt000'[/CODE] how to fetch records from msaccess database.[CODE]pst=con2.prepareStatement("Select * from pin_numbers where pin_number like '?*'"); pst.setString(1,pin); rs2=pst.executeQuery();[/CODE] Please any one help me. | |
Hi all, im trying to run so many codes using java RMI and nothing seems to work. im on the point of banging my head on the PC. Im sure evryone is aware of the popular Calculator example: Calcuator.java, CalcuatorImpl.java, CalcuatorClient.java and CalcuatorServer.java. I hae done this and other examples … | |
[CODE] /* This program would use console/GUI,*/ /* It should 1 adding of object 2 display of object 3 updating of object 4 deleting of object */ import java.util.*; public class EmployeeList{ private int [] Age; private String [] EmpfirstName; private String [] Emplast; private String [] Adrss; static Scanner … | |
pls help me to solve my problem. here's my code [CODE]import java.io.*; public class ifelse { public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int a; System.out.println("Enter your Level"); a = Integer.parseInt(in.readLine()); if (a == 1) System.out.println("\nYou are Freshman"); else if (a == 2) System.out.println("\nYou … | |
how to make a program using this 4 steps in a an array as a menu,and can you please give an example or idea how to do this for steps: 1 accept of object 2 display of object 3 updating of object 4 deleting of object thank you: | |
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 " … |
The End.