Computer Science, asked by taraknathpal74, 6 months ago

write 10 java programs​

Answers

Answered by themakerqueries
0

Answer:

Calculator Program in Java.

Factorial Program using Recursion.

Fibonacci Series Program.

Palindrome Program in Java.

Permutation and Combination Program.

Pattern Programs in Java.

String Reverse Program in Java.

Mirror Inverse Program in Java.

HeapSort Program in Java

Binary Search Program in Java

Answered by harshitranjan321
1

Answer:

first:

public class FinalReverseWithoutUsingStringMethods {

 

    public static void main(String[] args) {

         // TODO Auto-generated method stub

         String str = "Automation";

         StringBuilder str2 = new StringBuilder();

         str2.append(str);

         str2 = str2.reverse();     // used string builder to reverse

        System.out.println(str2);

         }

 

}

second:

public class FinalReverseWithoutUsingInbuiltFunction {

public static void main(String[] args) {

 String str = "Saket Saurav";

 char chars[] = str.toCharArray();  // converted to character array and printed in reverse order

 for(int i= chars.length-1; i>=0; i--) {

  System.out.print(chars[i]);

 }

}

}

third:

public class FinalReverseWithoutUsingInbuiltFunction {

public static void main(String[] args) {

 String str = "Saket Saurav";

 char chars[] = str.toCharArray();  // converted to character array and printed in reverse order

 for(int i= chars.length-1; i>=0; i--) {

  System.out.print(chars[i]);

 }

}

}

fourth:

public class FinalReverseWithoutUsingInbuiltFunction {

public static void main(String[] args) {

 String str = "Saket Saurav";

 char chars[] = str.toCharArray();  // converted to character array and printed in reverse order

 for(int i= chars.length-1; i>=0; i--) {

  System.out.print(chars[i]);

 }

}

}

fifth:

public class FinalReverseWithoutUsingInbuiltFunction {

public static void main(String[] args) {

 String str = "Saket Saurav";

 char chars[] = str.toCharArray();  // converted to character array and printed in reverse order

 for(int i= chars.length-1; i>=0; i--) {

  System.out.print(chars[i]);

 }

}

}

Explanation:

please mark as brainliest

Similar questions