Last active
August 6, 2024 07:10
-
-
Save sunmeat/2f94b337bcdd9d0c232f to your computer and use it in GitHub Desktop.
without return
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alex.methods; | |
public class Example { | |
static double withoutReturn() { | |
while (true) { | |
System.out.println("do smth..."); | |
} | |
} | |
public static void main(String[] args) { | |
withoutReturn(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment