diff --git a/.vscode/settings.json b/.vscode/settings.json
index a4e4aba..3092ab3 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,4 +1,7 @@
{
"java.format.settings.url": "eclipse-formatter.xml",
- "java.checkstyle.configuration": "${workspaceFolder}\\checkstyle.xml"
+ "editor.tokenColorCustomizations": {
+ "comments": "",
+ "textMateRules": []
+ }
}
\ No newline at end of file
diff --git a/src/main/java/com/utp/clsEstructuraDatos/Estructuras/colas/ColaCircular.java b/src/main/java/com/utp/clsEstructuraDatos/Estructuras/colas/ColaCircular.java
index c09fc51..ed7a126 100644
--- a/src/main/java/com/utp/clsEstructuraDatos/Estructuras/colas/ColaCircular.java
+++ b/src/main/java/com/utp/clsEstructuraDatos/Estructuras/colas/ColaCircular.java
@@ -7,11 +7,11 @@ public ColaCircular(int capacidad) {
@Override
public Result insertar(T elemento) {
- if (this.isFull()) {
+ if (this.isFull())
return new Result.ColaLlena();
- }
+
this.inner[cola] = elemento;
- // `(9 + 1) % 10 => 0`
+
this.cola = (cola + 1) % capacidad;
this.longitud++;
return new Result.OK();
@@ -19,14 +19,12 @@ public Result insertar(T elemento) {
@Override
public Option