Results 1 to 2 of 2

Thread: = operator

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

    Default = operator

    hi

    if i create a new String:

    String s=new String("Hello");

    and then :

    String news;

    news=s;

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

    thanks

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

    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 - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. {} after new operator, what does it mean?
    By willemjav in forum New To Java
    Replies: 3
    Last Post: 01-29-2013, 09: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-21-2012, 11:02 PM
  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, 04: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
  •