Move some files around type shi

This commit is contained in:
ackermanncedi 2024-11-11 15:31:45 +00:00
parent f8266d0682
commit 7a56a8f2fe
6 changed files with 32 additions and 18 deletions

View file

@ -1,4 +0,0 @@
java_binary(
name = "ProjectRunner",
srcs = glob(["cediackermann/main/n1/*.java"]),
)

View file

@ -1,11 +0,0 @@
package cediackermann.main.n1;
import java.util.Scanner;
public class Toilet {
public void readInput(){
Scanner s = new Scanner(System.in);
String input = s.nextLine();
System.out.println(input);
}
}

11
cediackermann/n1/BUILD Normal file
View file

@ -0,0 +1,11 @@
load("@rules_java//java:defs.bzl", "java_binary")
package(default_visibility = ["//visibility:public"])
java_binary(
name = "cediackermann_n1",
main_class = "cediackermann.n1.Main",
srcs = glob(["*.java"]),
deps = [
],
)

View file

@ -1,6 +1,6 @@
package cediackermann.main.n1;
package cediackermann.n1;
public class main {
public class Main {
public static void main(String[] args) {
Toilet toilet = new Toilet();

View file

@ -0,0 +1,18 @@
package cediackermann.n1;
import java.util.Scanner;
public class Toilet {
public void readInput() {
Scanner s = new Scanner(System.in);
String input = s.nextLine();
for (int i = 0; i < input.length(); i++) {
convertCharacter(input.charAt(i));
}
System.out.println(input);
}
private void convertCharacter(Character c) {
System.out.println(c);
}
}

View file

@ -3,7 +3,7 @@ load("@rules_java//java:defs.bzl", "java_binary")
package(default_visibility = ["//visibility:public"])
java_binary(
name = "n1",
name = "silviobraendle_n1",
main_class = "silviobraendle.n1.Main",
srcs = glob(["*.java"]),
deps = [