32,199 Topics
| |
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? | |
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")) { … | |
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~ | |
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 … | |
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. … | |
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 … | |
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, … | |
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 … | |
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 … | |
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! | |
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. … | |
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 … | |
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 … | |
[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 … | |
[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"); … | |
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; … | |
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 … | |
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 … | |
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 | |
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 … | |
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(); } } … | |
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 … | |
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 | |
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 | |
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 … | |
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.. | |
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 | |
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 | |
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 … |
The End.