Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Java Java (JDK), 53 bytes

class A{public static void main(String[]a){for(;;);}}
class A{public static void main(String[]a){for(;;);}}

Try it online!

Yay full program requirement!

Java, 53 bytes

class A{public static void main(String[]a){for(;;);}}

Yay full program requirement!

Java (JDK), 53 bytes

class A{public static void main(String[]a){for(;;);}}

Try it online!

Yay full program requirement!

Commonmark migration
Source Link

#Java , 53 bytes

Java , 53 bytes

class A{public static void main(String[]a){for(;;);}}

Yay full program requirement!

#Java , 53 bytes

class A{public static void main(String[]a){for(;;);}}

Yay full program requirement!

Java , 53 bytes

class A{public static void main(String[]a){for(;;);}}

Yay full program requirement!

deleted 136 characters in body
Source Link
Geobits
  • 19.7k
  • 4
  • 56
  • 125

#Java, 5653 bytes

class A{public static void main(String[]a){whilefor(1>0;;);}}

Yay full program requirement!

You can also use for(;1>0;); instead of while for the same count. But, I hardly ever get to use while when golfing, so why not?

#Java, 56 bytes

class A{public static void main(String[]a){while(1>0);}}

Yay full program requirement!

You can also use for(;1>0;); instead of while for the same count. But, I hardly ever get to use while when golfing, so why not?

#Java, 53 bytes

class A{public static void main(String[]a){for(;;);}}

Yay full program requirement!

added 137 characters in body
Source Link
Geobits
  • 19.7k
  • 4
  • 56
  • 125
Loading
Source Link
Geobits
  • 19.7k
  • 4
  • 56
  • 125
Loading

AltStyle によって変換されたページ (->オリジナル) /