32,204 Topics

Member Avatar for
Member Avatar for Pushpasheela

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.

Member Avatar for ~s.o.s~
0
107
Member Avatar for ssimkhan

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 …

Member Avatar for nil2087
0
237
Member Avatar for churva_churva

[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 …

Member Avatar for peter_budo
0
219
Member Avatar for kazumahits

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 …

Member Avatar for jon.kiparsky
0
11K
Member Avatar for churva_churva

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:

Member Avatar for jon.kiparsky
0
491
Member Avatar for extemer

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 …

Member Avatar for extemer
0
372
Member Avatar for Andrew Davis 64

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

Member Avatar for alex1986
0
221
Member Avatar for Pushpasheela

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 …

Member Avatar for Akill10
0
78
Member Avatar for miraj0072004

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 …

Member Avatar for NormR1
0
99
Member Avatar for kumpul101

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 …

Member Avatar for JamesCherrill
0
108
Member Avatar for dbanks4271

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 …

Member Avatar for Katana24
0
136
Member Avatar for notuserfriendly

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 …

Member Avatar for masijade
-1
2K
Member Avatar for Sunshineserene

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?

Member Avatar for tong1
0
14K
Member Avatar for rje7

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 …

Member Avatar for masijade
0
124
Member Avatar for koti86

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.

Member Avatar for yasuodancez
0
112
Member Avatar for NewOrder

[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 …

Member Avatar for JamesCherrill
0
197
Member Avatar for TheSecOrg

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.

Member Avatar for coil
0
115
Member Avatar for TheSecOrg

[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. …

Member Avatar for TheSecOrg
0
198
Member Avatar for ChPravin

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 …

Member Avatar for jon.kiparsky
0
1K
Member Avatar for extemer

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) …

Member Avatar for coil
0
100
Member Avatar for alex1986

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 …

Member Avatar for alex1986
0
177
Member Avatar for xterradaniel

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 …

Member Avatar for xterradaniel
0
6K
Member Avatar for shivaniaroraji

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 …

Member Avatar for shivaniaroraji
0
207
Member Avatar for xterradaniel

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 …

Member Avatar for xterradaniel
0
1K
Member Avatar for NSBailey

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.

Member Avatar for extemer
0
110
Member Avatar for ozlem.a17

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 …

Member Avatar for JamesCherrill
0
113
Member Avatar for kimiko

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 …

Member Avatar for jon.kiparsky
0
236
Member Avatar for dpirtle83

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 …

Member Avatar for NormR1
0
155
Member Avatar for Iamthecheese

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 …

Member Avatar for NormR1
0
191
Member Avatar for MonkeyCode

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 " …

Member Avatar for peter_budo
0
842

The End.