From 2b6a5277b5b17bb1cc42e40634678e4ac55efde4 Mon Sep 17 00:00:00 2001 From: Ahmad Date: Thu, 9 May 2024 16:04:51 +0200 Subject: [PATCH] add a minjava code what can be typed right now --- .../JavaTestfiles/ClassCanBeTyped.java | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/main/resources/JavaTestfiles/ClassCanBeTyped.java diff --git a/src/main/resources/JavaTestfiles/ClassCanBeTyped.java b/src/main/resources/JavaTestfiles/ClassCanBeTyped.java new file mode 100644 index 0000000..53dcd26 --- /dev/null +++ b/src/main/resources/JavaTestfiles/ClassCanBeTyped.java @@ -0,0 +1,51 @@ +public class ClassCanBeTyped { + int x; + int y; + char z; + + public ClassCanBeTyped() { + this.x = 10; + int i; + for (i = 0; i < (x+1); i = i + 1) { + int j; + for (j = 0; j < this.x; j += 1) { + this.x = this.x * this.x; + break; + } + } + do{ + this.y = this.y + 1; + }while (this.y < 10); + + if(this.x > 10) { + this.x = 10; + } else { + this.x = 20; + } + int k = 0; + for ( k = 0; k < 10; k = k+1) { + if(k == 5) { + return; + } + } + + } + public ClassCanBeTyped(int x, int y, char z) { + this.x = x; + this.y = y; + this.z = z; + + } + public int getY() { + return this.y; + } + public int getX() { + return this.x; + } + + public char getZ() { + return this.z; + } + + +} \ No newline at end of file