Get 50+ most important Java programs with outputs and logic-building questions in PDF format – curated by Amit Sir for the ICSE Class 10 Computer Applications Board Exam 2027.
import java.util.*;
class PrimeCheck
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int c = 0;
for(int i = 1; i <= n; i++)
{
if(n % i == 0)
c++;
}
if(c == 2)
System.out.println("Prime Number");
else
System.out.println("Not Prime");
}
}
import java.util.*;
class PalindromeNumber
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int temp = n, rev = 0;
while(n > 0)
{
int d = n % 10;
rev = rev * 10 + d;
n = n / 10;
}
if(temp == rev)
System.out.println("Palindrome");
else
System.out.println("Not Palindrome");
}
}
Note: Full PDF contains 50+ such board-level programs with expected output.
Get the complete PDF containing 50+ Important Java Programs with Output covering the entire ICSE Class 10 Computer Applications syllabus.
UPI ID: amitsirtutor@icici
Contact (WhatsApp): +91 81819 69432
After Payment:
Send payment screenshot on WhatsApp. You’ll receive the full PDF within 15 minutes.