Archives: Logical Programs

How to reverse a string without using the reverse() method in java?

In this section, you will see how to reverse a string without using the predefined method reverse(). Here we have explained the two solutions for the string reverse using recursion and without using recursion. Let’s see both solutions below: Solution #1 : Using Recursion ReverseStringWithRecursion.java OUTPUT: Please enter a string to reverse:javacodepointReverse of the given …

How to reverse a string without using the reverse() method in java? Read More »

Top 50 Pattern printing programs in java

We have categorized all the patterns into three categories: Star Patterns Number Patterns Character Patterns or Alphabet Patterns Star Patterns Number Patterns Character or Alphabet Patterns 1.) Star Patterns Pattern-1 (Right Triangle) StarPattern1.java Pattern-2 (Down Right Triangle) StarPattern2.java Pattern-3 (Mirrored Right Triangle) StarPattern3.java Pattern-4 (Down Mirrored Right Triangle) StarPattern4.java Pattern-5 (Right Pascal’s Triangle) StarPattern5.java Pattern-6 …

Top 50 Pattern printing programs in java Read More »

Top 30 star pattern program in Java

In this article, you will see the top 30-star pattern programs in Java. Here we tried to provide the logic with a clear explanation for the Java professional. Pattern programs are frequently asked in the fresher interview to check their logical skills. Before going through the logic for all these pattern programs, we recommend you …

Top 30 star pattern program in Java Read More »

List of basic logical programs in Java

Logical programming is a programming paradigm that is largely based on formal logic. Logical programming is mostly asked in the interview by the interviewer to check the logical skills of the candidates. In this article, you will see the very basic and commonly asked logical programs in the interview with clear explanations such as, Fibonacci series Calculate the factorial …

List of basic logical programs in Java Read More »