Skip to content
Snippets Groups Projects
Commit b18db7cc authored by Flori N's avatar Flori N
Browse files

Update Klasse Walze / Walzeneinstellung

parent 688b13b4
No related branches found
No related tags found
No related merge requests found
...@@ -137,12 +137,14 @@ public class Walze { ...@@ -137,12 +137,14 @@ public class Walze {
checkRing = this.iPositionBuchstabe == (getRingstellung() - 1); checkRing = this.iPositionBuchstabe == (getRingstellung() - 1);
setBuchstabe(walzeAlpha[iPositionBuchstabe]);
return checkRing; return checkRing;
} }
public int verschiebung(int i) { public int verschiebung(int i) {
if((i + iPositionBuchstabe) > 26) { if((i + iPositionBuchstabe) >= 26) {
int verschoben = (i + iPositionBuchstabe) - 26 ; int verschoben = (i + iPositionBuchstabe) - 26 ;
} else { } else {
verschoben = i + iPositionBuchstabe; verschoben = i + iPositionBuchstabe;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment