-4

In Vb.net, I can split the code using & symbol. Example:

 if (a<>b) & _
    (c<>d) then

The above code is consider one statement. Is there any similar way that work in Android Studio?

James Wierzba
  • 16,176
  • 14
  • 79
  • 120
ckcheah
  • 29
  • 8

2 Answers2

2

Java statements can span over multiple lines, no need to specify a line break. (Note this depends on the language, not the IDE).

James Wierzba
  • 16,176
  • 14
  • 79
  • 120
0

If you want to split across multiple lines no need to terminate the line...

RajSharma
  • 1,941
  • 3
  • 21
  • 34