Search:

Type: Posts; User: JavaPF

Search: Search took 0.08 seconds.

  1. Thread: !=null

    by JavaPF
    Replies
    11
    Views
    2,654

    Re: !=null

    How about something like this?



    public class Person {

    /**
    * JavaProgrammingForums.com
    */
  2. Thread: !=null

    by JavaPF
    Replies
    11
    Views
    2,654

    Re: !=null

    Hello ss7.

    You can use an 'if' statement to check if the value is null.

    The if-then and if-then-else Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)

    != is a...
Results 1 to 2 of 2