How to create a function which initialize a 1-d array ar[] of 15 integers and print the sum of all the integers which are present at odd indexces.

2 years ago

import java.util.*; public class SumOfOddIndexces { public static void print1() { Scanner Sc=new Scanner(System.in); System.out.println("Enter 15 Integer"); int a […

Write a java program to take string as an input and check whether it is Palindrome or not.

2 years ago

class PQR{ public static void main(String k) { int l=k.length(); String m=""; //empty for(int i=l-1;i>=0;i--) { m=m+(k.charAt(i)); } if(m.compareTo(k)==0) {…

How to design a overloaded function. java icse class 10

3 years ago

Make class Check to design the overloaded function primes() as:i. void primes(long num) - To print only prime digits from…

Finding Minimum, Maximum, and Sum of Array Elements in Java

3 years ago

Finding Minimum, Maximum, and Sum of Array Elements in Java Java program to initialize given data in an array and…

Write a program to input a character. Convert the character into its opposite case. Program should continue as long as the user wants.

3 years ago

import java.util.*; class alphabet { static Scanner in=new Scanner(System.in); public static void main() { char c=' '; do { System.out.println("Enter…

How to write a java program to print series

3 years ago

How to write a java program to print series. In the world of programming, series printing is a fundamental task…

How to create java program to bubble sort the values in ascending order

3 years ago

How to create java program to bubble sort the values in ascending order. Today we will discuss how to print…

Write a program to input a number and check whether it is prime or not

3 years ago

Write a program to input a number and check whether it is prime or not. Today we are going to…