Results 1 to 2 of 2

Thread: = operator

  1. #1
    yanivdan98 is offline Member
    Join Date
    Feb 2013
    Rep Power

    Default = operator


    if i create a new String:

    String s=new String("Hello");

    and then :

    String news;


    is the line "news=s" is a corretly java line?


  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: = operator

    What happened when you created a sample program that tested this out?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

Similar Threads

  1. {} after new operator, what does it mean?
    By willemjav in forum New To Java
    Replies: 3
    Last Post: 01-29-2013, 10:40 AM
  2. Use of this operator
    By anjibman in forum New To Java
    Replies: 2
    Last Post: 09-15-2012, 11:22 PM
  3. Replies: 5
    Last Post: 01-22-2012, 12:02 AM
  4. question about the operator ++
    By dardar in forum New To Java
    Replies: 10
    Last Post: 08-16-2010, 02:39 PM
  5. Increment Operator Example
    By abimaran in forum New To Java
    Replies: 10
    Last Post: 11-03-2009, 05:45 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