Java in Newer
- ' + ' Operator problem
- Sun, 13 Jul 2008 16:26:00 GMT
- Hi all,I have to classes, class istances and a main class TestDistances. In test distances I like to calculate the rate , so I called the method milesperhour. and I am getting an error at 1. Can anybody please tell me why am I worng.Error : operator + cannot be applied to distances.Distances,di...
- ' V model'
- Mon, 14 Jul 2008 10:14:00 GMT
- What is 'V model' in the developmental model?...
- On 11 Dec 2005 10:02:30 -0800, bherbst65@hotmail.c...
- Wed, 07 May 2008 00:55:00 GMT
- On 11 Dec 2005 10:02:30 -0800, bherbst65.thatisjava.com.hotmail.com wrote, quoted orindirectly quoted someone who said :>Runtime rt = Runtime.getRuntime();> rt.exec(new String[] {Str1,Str4});> }> catch (Exception e3) {System.out.println("ERR");}all this could be factored:private void show...
- " "(space character ) vs %20
- Sun, 13 Jul 2008 13:37:00 GMT
- hi guysi read a propety file from the following pathC:/Documents and Settings/chinnaraj/workspace/email/bin/classes/te.propertiesi use the following code to read this property fileClassLoader cl=Thread.currentThread().getContextClassLoader();java.net.URL path= cl.getResource("te.properties");Sys...
- " a ".trim() == " a ".trim() //why false?
- Mon, 24 Sep 2007 04:59:00 GMT
- public class Q031 { public static void main(String args[]) { System.out.println(" a ".trim() == " a ".trim());//falseSystem.out.println("a".trim() == "a".trim());//true} }why is it ...
- " casting in java "
- Wed, 19 Sep 2007 09:43:00 GMT
- Hi All,Can some one help me find out whats the error in my code?what/where is wrong in my casting?import java.lang.* ;class base {public void display(){System.out.println( " i am in base ");}};class derv extends base{public void show(){System.out.println( " i am in derv ");}};class test13 ...
- Does anybody know how I can Drag an icon/object
- Wed, 07 May 2008 05:35:00 GMT
- Hi.." Does anybody know how I can Drag an icon/object (which is an exe.and has short cut, for example java web start icon) from windows desktop to Java GUI application ? If so, where can I Find More info/demo source code"Regards...
- " has a " relationship
- Sun, 13 Jul 2008 17:02:00 GMT
- can anyone explain to me what exactly is "has a" relationship..thanx in advance...
- " in String?
- Sun, 13 Jul 2008 17:03:00 GMT
- Hi everyone!How can i include a " in a string?...
- " problem accessing my package "
- Wed, 19 Sep 2007 10:13:00 GMT
- Hi All,I have created a package called packA [c:\packA], which has the file TestPkg.java.now when i am trying to import this package from a different path, i am getiing a error saying " package packA doesn't exist". plz help mehere's my code:TestPkg.java this is under c:\packApackage ...
- " sorting "
- Wed, 19 Sep 2007 08:50:00 GMT
- Hi All,i wrote a prgm to sort an array of strings that ver read from a file...i searched the prev threads reg this..but cudnt find or rather understand the sol given there..here is my code:import com.javaranch.common.* ;import java.util.* ;import java.util.Arrays;import java.lang.* ;import ...
- " want to learn JDBC,ODBC,etc .."
- Wed, 19 Sep 2007 10:06:00 GMT
- Hi All,This forum has been much help to me till now..Now that i am little confident with basic java, i want to learn accessing a database(oracle) using java for which i need some good tutorials which teach me JDBC,ODBC and stuff req for that..Can u suggest me some good sites/tutorials(free) ...
- I wanted to deserialize a XML file
- Wed, 07 May 2008 13:40:00 GMT
- Hi,I wanted to deserialize a XML file (config file from http://www.webservertalk.com/Apache_Server_configuration_support_54.htm. JAMES) who got some attributes like "database-connections", is there a way to get that working with a conventional variable name as "-" is not accepted in...
- "$" in class names
- Sun, 23 Sep 2007 20:34:00 GMT
- I was goin thru our project code (JDK1.2) and it has some class names having $ signs and also being declared private. I thought $ signs were not allowed in classnames and modifiers for classnames should be public(could be abstract also). any comments?...
- "$%&/()=!:mad: Classpath! DOS! ARGH!
- Sun, 13 Jul 2008 16:41:00 GMT
- I just got back from a lengthy holiday and decided to continue my Java-jedi training. I have everything set up to do this at work, but I have forgotten how to set the classpath at home. I keep getting 'Exception in thread "main" java.lang.NoClassDefFoundError: MyProgram' when I write a p...
- "<identifier> expected" error
- Wed, 14 Nov 2007 12:53:00 GMT
- Hi, can anyone please help me to print "String bb" outside the method. I am getting "<identifier> expected" error. My code ispublic class Main extends javax.swing.JFrame {/** Creates new form Main */ static String bb="";public Main() {initComponents();}[... lines of code ...]private void ...
- when you invoke an administration task such as creating a database pool. The default value for admin
- Fri, 21 Sep 2007 13:01:00 GMT
- These are the instructions to setting up the environment to run the j2ee tutorial... I don't understand... for instance how do I add /bin to the front of my path?What is this path talking about? What are the rest of the instructions saying? For someone who is new to java this is extremely confus...
- ")" error with code tags
- Mon, 24 Sep 2007 04:16:00 GMT
- [/ code ] { code ]import java.util.Scanner;import java.io.File;import java.io.IOException;import javax.swing.JOptionPane;public class MicahYPA4{ public static void main( String [] args ) throws IOException {FileMan myF = new FileMan();myF.process(); ...
- ")" error with RIGHT code tags this time
- Mon, 24 Sep 2007 04:16:00 GMT
- {code]import java.util.Scanner;import java.io.File;import java.io.IOException;import javax.swing.JOptionPane;public class MicahYPA4{ public static void main( String [] args ) throws IOException {FileMan myF = new FileMan();myF.process(); ...
- ")" expected error
- Mon, 24 Sep 2007 04:16:00 GMT
- i keep getting this ")" expected error and i can't figure it out!!!! suggestions?import java.util.Scanner;import java.io.File;import java.io.IOException;import javax.swing.JOptionPane;public class MicahYPA4{ public static void main( String [] args ) throws IOException {FileMan myF = new ...
- ".. is an abstract class. It can't be instantiated"
- Tue, 18 Sep 2007 13:33:00 GMT
- Does anyone have an idea of how I can get rid of the above error message? Here is a bit of my code: import java.io.*;import java.util.Vector; class Project3 { private BiTree company = new BiTree(); public static void main(String[] args) throws IOException {Project3 run = new ...
- ".. is an abstract class. It can't be instantiated"
- Tue, 18 Sep 2007 13:33:00 GMT
- Does anyone have an idea of how I can get rid of the above error message? Here is a bit of my code: import java.io.*;import java.util.Vector; class Project3 { private BiTree company = new BiTree(); public static void main(String[] args) throws IOException {Project3 run = new ...
- I don't know what pieces of it I could cut out without destroying my code
- Wed, 07 May 2008 00:52:00 GMT
- I realize this code is really long and kind of confusing, but I don't know what pieces of it I could cut out without destroying my code, so I'll just pinpoint my errors for you. Also, it's a lot easier to read in my actual program, but I had to reformat it so it would make sense in the p...
- ";" after if statement?
- Wed, 30 Apr 2008 23:17:00 GMT
- What does it mean when a ";" is inserted after an if statement?if (x == 2){System.out.println("x = 2");};...
- "\n" in content pane
- Tue, 25 Sep 2007 06:17:00 GMT
- Hi.How can I do something similar to a "\n" in a getContentPane?I think that is something like label1 = new JLabel( bug, SwingConstants."HERE GOES THE "\N");Thanks...
- in our requirement we need to use underscore
- Thu, 17 Jul 2008 19:35:00 GMT
- in our requirement we need to use underscore "_" character in our package name.does anyone foresee any problems in using "_" in package name.Thank....
- "}" expected?
- Tue, 25 Sep 2007 02:39:00 GMT
- import java.swing.UIManager.*;public class WindowUtilities {UIManager ui = new UIManager();public static void setNativeLookAndFeel() {try {ui.setLookAndFeel(ui.getSystemLookAndFeelClassName());} catch(Exception e) {System.out.println("Error setting native LAF: " + e);}}public static void ...
- "== operator checks for object references
- Sun, 13 Jul 2008 16:16:00 GMT
- Not exactly what u expect but i finally understand overloading methods , static members & object references . Might aswell post it for u lot to see .Put the following codes in their individual files & well compile 'em .Run 'em n see what happens !!!!! U can run 'em individually aswel...
- How should I check if those first two strings are equal?
- Tue, 29 Apr 2008 18:30:00 GMT
- It may look quite silly, but why Integer.toString(23) == Integer.toString(23) returns false?I'd assume it's referring to the memory address of those two strings, but"test == "test"returns true!String x = "test", y = "test";x == yreturns true!what am I missing?How...
- "23: package javax.servlet does not exist" HELP!
- Wed, 19 Sep 2007 19:40:00 GMT
- I've installed Tomcat4.0 on my Windows 98, to try some examlesI i download ready class files it works but if i try to compile the source with the jdk1.3 here is the error message"23: package javax.servlet does not existimport javax.servlet.*;"HelpRiccardo from Italy ...
- "Java in Newer" Related Questions
- I don't know what pieces of it I could cut out without destroying my code
- I realize this code is really long and kind of confusing, but I don't know what pieces of it I could cut out without destroying my code, so I'll just pinpoint my errors for you. Also, it's a lot easier to read in my actual program, but I had to reformat it so it would make sense in the p...
- I wanted to deserialize a XML file
- Hi,I wanted to deserialize a XML file (config file from http://www.webservertalk.com/Apache_Server_configuration_support_54.htm. JAMES) who got some attributes like "database-connections", is there a way to get that working with a conventional variable name as "-" is not accepted in...
- ".. is an abstract class. It can't be instantiated"
- Does anyone have an idea of how I can get rid of the above error message? Here is a bit of my code: import java.io.*;import java.util.Vector; class Project3 { private BiTree company = new BiTree(); public static void main(String[] args) throws IOException {Project3 run = new ...
- "== operator checks for object references
- Not exactly what u expect but i finally understand overloading methods , static members & object references . Might aswell post it for u lot to see .Put the following codes in their individual files & well compile 'em .Run 'em n see what happens !!!!! U can run 'em individually aswel...
- Does anybody know how I can Drag an icon/object
- Hi.." Does anybody know how I can Drag an icon/object (which is an exe.and has short cut, for example java web start icon) from windows desktop to Java GUI application ? If so, where can I Find More info/demo source code"Regards...
- " has a " relationship
- can anyone explain to me what exactly is "has a" relationship..thanx in advance...