32,199 Topics

Member Avatar for
Member Avatar for sarath.koiloth

I know java doesnot support multiple inheritence.lets say my class A extends B.Now my class A is extending class B as well as Object Class .how this happens?Why class A gets compiled?

Member Avatar for JamesCherrill
0
130
Member Avatar for killerqb

I'm having a problem reading in a file to a scanner, it is supposed to take in a filename and then evaluate whether it is a URL or filename, but it having trouble reading just a local file. [CODE]public boolean loadSongs(String filename) { Scanner load1 = null; if (filename.contains("http")) { …

0
76
Member Avatar for oneat
Member Avatar for nihao

Hello everyone! I have a problem . How to maintenance the file's last modified time when upload it to FTP server? Please help me.Thank you~

Member Avatar for nihao
0
140
Member Avatar for shroomiin

Hello everyone. I am trying to write a program that reads a percent discount and then deducts that from a total price. i was just wondering how do i assign percentages to a variable? what i am doing is print "please enter percent discount"; percent discount++ then be able to …

Member Avatar for Ezzaral
0
41
Member Avatar for StarZ

I'm a newb in Java. how do I make the loop stop when the user enters 0. Is the codes right so far? I can't seem to run it, theres 1 error saying (no source location) The output is suppose to look like this: 1. show total in bank. 2. …

Member Avatar for Grn Xtrm
0
128
Member Avatar for skullsplitter

I am using NetBeans 6.7.1, java 6R16 and JavaFX 1.2. I have two projects, a JavaFX Script Application that calls Java classes and a Java Application. Within the Java project I can access javax.crypto but within a Java class in the JavaFX project, javax.crypto is not accessible. I checked the …

Member Avatar for skullsplitter
0
70
Member Avatar for KirkPatrick

Well I'm going through a lot of my code and wanting to clean it up a bit by creating functions to do the necessary tasks instead of having code that is multiple lines long. For example, I use the following code multiple times [code=java] ViewObject vo = new ViewObject(a, b, …

Member Avatar for Ezzaral
0
113
Member Avatar for Nishanthi

right now i m working in netbeansIDE with web application i m trying to connect to sql server 2005 database using the preceding coding Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbcdbc:data"); Statement st=con.createStatement(); st.executeUpdate("insert into audio values(11)"); con.close(); st.close(); now no data are inserted int the audio table what is the solution for this.Its …

Member Avatar for peter_budo
0
77
Member Avatar for KirkPatrick

I currently have strings that are all the same throughout my classes, I was just wondering how I could make the value of the strings pass from the main class to the rest of the classes. My reasons being that I am wanting to create a property file and have …

Member Avatar for KirkPatrick
0
232
Member Avatar for jrosh

Please tell me how to check the version of the JDK of the java installed .... I wanna knw the version of the JDK which is the version of my code. NOT the version of JRE!

Member Avatar for masijade
0
48
Member Avatar for Shigekazu

Hello all, I'm trying to add a multiple JTextFields onto a single JPanel that has been already initialized thanks to the Design tool from the JFrame. I'm pretty sure that I already added them and I'm not getting any errors but they aren't showing up when I execute the program. …

Member Avatar for quuba
0
159
Member Avatar for nope3d

I have been troubled about my program how to put some funtionalities regarding on my buttons can anybody can help me? In button compute I have to put some computation regarding on (weight*perounce)+others; then for the button clear I have to clear all the inputed data in the textfield; then …

Member Avatar for majestic0110
0
87
Member Avatar for gururajb

I have one directory consisting of logfiles... I want to run 3 threads for m files where m is big. Here is my code in which i have created thread array and want to reuse the threads soon they finish the void run. But i am not able to use …

Member Avatar for JamesCherrill
0
83
Member Avatar for tuffyg

[CODE] package farecalc; import java.io.*; public class FareCalc { public static void main (String[] args) throws IOException { BufferedReader in; in = new BufferedReader(new InputStreamReader(System.in)); double firstMile = 2.80; double otherMile = 1.20; System.out.println("Please insert your total Mileage"); String mileageInput = in.readLine(); double mileage = Integer.parseInt(mileageInput); double price = firstMile …

Member Avatar for majestic0110
0
108
Member Avatar for Rads19

[CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; public class MultipleChoice1 extends Applet implements ItemListener { String question1 = new String("1. 7+2 = ? a.6 b.8 c.9 d.10"); String question2 = new String("2. 9-5 = ? a.2 b.4 c.6 d.8"); String question3 = new String("3. 144/12 = ? a.12 b.10 c.14 d.16"); …

Member Avatar for Rads19
0
160
Member Avatar for chingkoysilog

im not a little bit familiar with c program.....so can u help me to change this program to c program......pls ASAP.. here are the code: import java.awt.*; import java.awt.event.*; import java.net.*; import java.io.*; import javax.swing.*; public class TicTacToeServer extends JFrame { private byte board[]; private boolean xMove; private JTextArea output; …

Member Avatar for yellowSnow
0
197
Member Avatar for opethcire316

Hello, I am new to this forum and need a little help. I am taking an intro to Java Course and we are creating a project that reads in a set of user inputted numbers and stops when the user inputs any letter. From a textbook example they have the …

Member Avatar for opethcire316
0
3K
Member Avatar for ajeet choudhary

sir.......i m confused for the function of jvm,jdk,jre. i know the full form of these but i m not sure about these working so please help me... if anyone know the full form of java then please tell me. one from i find is "just another vegue approach" but i …

Member Avatar for masijade
0
207
Member Avatar for ajeet choudhary

hello......sir and madam.......... i m new for this site so please help and tell me how i can share my problem with you...... sorry for waste your time . thanks

Member Avatar for mrnutty
0
92
Member Avatar for gibson.nathan

what i am supposed to do is calculate the chances of wining a bottle top prize if there is one in five winners. i have to do it a difficult way though. i made a random number that signifies a win when it lands on one. i then have to …

Member Avatar for VernonDozier
0
632
Member Avatar for Teethous

Can someone identify the error in this code for me? The input line gives an error. [CODE]import java.util.*; public class Time_Convert_Test { Scanner number = new Scanner ( System.in ); public static void main(String[] args) { int firstValue; System.out.print( "Please enter time in hours:" ); firstValue = number.nextInt(); } } …

Member Avatar for Teethous
0
108
Member Avatar for cbsoldier24

Hey guys, This is my first topic. I tried my very best to keep behind the scenes and not make a thread about this, but its been ticking me off for a while now.. The "while" loop im using.. i can only get the last user input to display or …

Member Avatar for cgeier
0
553
Member Avatar for slatk3y

I can generate a certificate from terminal using this command: keytool -genkey -keystore myCert -keyalg RSA ... and then you enter name, ... Is there an alternative way to do the same thing in JAVA? Any help is appreciated, thanks

0
79
Member Avatar for slatk3y

Hello, I am trying to understand how server and clients work. Can anyone explain it and give an example or link to the tutorial. I greatly appreciate your help

0
142
Member Avatar for llemes4011

Hello, I'm using NetBeans 6.7.1, and Derby 10.5.3.0. I'm trying to learn how to write Database applications, and I'm having trouble connecting to my Database. It loads the Derby Driver (EmbeddedDriver), but won't connect to the the Database named test. I looked at tests Properties in NetBeans, and it said …

Member Avatar for llemes4011
0
807
Member Avatar for anuj_sharma

Hey Guys, I want to use mySQL with java and for this purpose i downloaded the mysql-j connector from the mysql website. But i dont know how to poceed forward. Please help..

Member Avatar for Ezzaral
0
93
Member Avatar for jakx12

I know we are not supposed to ask for code, but could someone please tell me how I would do this. Not write code, just give me guidelines. thanks

Member Avatar for jakx12
0
92
Member Avatar for Nishanthi

i want to develop project for sound and stage entertainment using netbeansIDE can anyone tel the prerequisites and steps for starting the project please please

Member Avatar for majestic0110
0
61
Member Avatar for rainny

I have 2 buttons, which are start and stop button. When I click on the start button, i make the timer is counting while click on the stop button, it will stop counting the time. The problem I face here is if I click back start button, is it possible …

Member Avatar for emint
0
76

The End.