Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Posts
    20
    Rep Power
    0

    Default problems when i run the program

    hey hey guyes... hope you can help me with this... i wrote a small program and when i run it it says that i have 77 errors.... can you help me??

    class EqualsTest {
    public static void main(String[]*argumenter) {
    String str1, str2;
    str1 = "bogen er god!";
    str2 = str1;

    System.out.println("String1: " + str1);
    System.out.println("String2: " + str2);
    System.out.println("Samme objekt? " + (str1 == str2));

    str2 = new String(str1);

    System.out.println("String1: " + str1);
    System.out.println("String2: " + str2);
    System.out.println("Samme objekt? " + (str1 == str2));
    System.out.println("Samme værdi? " + str1.equals(str2));
    }
    }

  2. #2
    subith86 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Bangalore, India
    Posts
    102
    Rep Power
    0

    Default

    Did this compile??
    It shouldn't. Cos, what is this String[]*argumenter

  3. #3
    Join Date
    Mar 2011
    Posts
    20
    Rep Power
    0

    Default

    yes it compile with out any problems

    whats wrong with the string??

  4. #4
    Join Date
    Mar 2011
    Posts
    20
    Rep Power
    0

Similar Threads

  1. problems with the program
    By stefandanielsen in forum AWT / Swing
    Replies: 5
    Last Post: 03-03-2011, 09:04 AM
  2. problems with the program
    By stefandanielsen in forum New To Java
    Replies: 1
    Last Post: 03-01-2011, 11:08 AM
  3. Problems with program..
    By spatel14 in forum New To Java
    Replies: 8
    Last Post: 07-01-2010, 03:51 PM
  4. Program using JPanel - problems
    By doozer8688 in forum New To Java
    Replies: 6
    Last Post: 11-05-2008, 12:16 AM
  5. Problems with this Java Program...
    By Bangtajra123 in forum Java Applets
    Replies: 6
    Last Post: 09-30-2008, 11:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •