ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

snippet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • snippet

    Public class test(
    Public static void main (string [] args) {
    Int x = 3, y = 5;
    If(x = y)
    System.out.println(?a?)
    Else
    System.out.println(?b?) }}


    Please let me know the result for the above snippet.

  • #2
    Re: snippet

    Originally posted by ashwija

    Please let me know the result for the above snippet.
    Public class test( ???
    result (compiling) :
    class or interface expected....

    Comment


    • #3
      Re: snippet

      System.out.println(" Fail / Suck ") } }
      Michael Catalani
      IS Director, eCommerce & Web Development
      Acceptance Insurance Corporation
      www.AcceptanceInsurance.com
      www.ProvatoSys.com

      Comment

      Working...
      X