Skip to content

Instantly share code, notes, and snippets.

@alexradzin
alexradzin / NumbersTest.java
Created April 16, 2023 16:09
Write function that accepts positive number and prints all numbers with number of digits less than given number. For example input=2 should print 1..9, input=3 should print 1..99 etc.
package com.numberstest;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
public class NumbersTest {
@Test
void n() {
printNumbersBuildOfDigitsLessThan(4);
@alexradzin
alexradzin / Base.java
Last active September 24, 2024 10:28
Failing attempt to instrument base class
public class Base {
public void base() {
System.out.println("Base.base()");
}
public void foo() {
System.out.println("Base.foo()");
}
}