This file contains hidden or 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
import java.util.concurrent.atomic.AtomicInteger; | |
class Foo { | |
public void first() { | |
System.out.println("first"); | |
} | |
public void second() { | |
System.out.println("second"); | |
} |
This file contains hidden or 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
import java.util.Scanner; | |
import java.util.concurrent.atomic.AtomicInteger; | |
public class FizzBuzz { | |
public static void main(String[] args) { | |
AtomicInteger counter = new AtomicInteger(1); | |
System.out.print("Please enter the upper limit: "); | |
int limit = new Scanner(System.in).nextInt(); | |