Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Example
- extends Object {
- //Comments
- //-----------------------------------------------------------------------
- /**
- * JavaDoc comment
- */
- public String [] array = {
- "1", "2", "3",
- "4", "5", "6",
- "7", "8", "9"
- };
- private int a = 10;
- private String s = "Hello " +
- "World";
- public void m1() {
- for (int i = 0;
- i < 10;
- i++) {
- }
- }
- public boolean m2(
- int a) {
- if (a < 10
- && a > 0) {
- return true;
- } else {
- return false;
- }
- }
- public void foo() {
- while (a < 10
- && a > 0) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement