diff --git a/algorithms/Java/queues/Generate Binary numbers b/algorithms/Java/queues/Generate Binary numbers index 2064ca5b..eaf943d8 100644 --- a/algorithms/Java/queues/Generate Binary numbers +++ b/algorithms/Java/queues/Generate Binary numbers @@ -1,7 +1,7 @@ import java.util.LinkedList; import java.util.Queue; public class generatebinary { - public static void genrating(int n,Queue sb) + public static void generating(int n,Queue sb) { sb.add("1"); @@ -18,6 +18,6 @@ public class generatebinary { public static void main(String[] args) { int n=5; Queue sb=new LinkedList(); - genrating(n,sb); + generating(n,sb); } }