ASSIGNMENT06 24121148 Abeed
ASSIGNMENT06 24121148 Abeed
import java.util.Scanner;
public class Task1 {
public static void main(String[] args) {
Scanner abeed= new Scanner(System.in);
System.out.println("Please enter your input");
String first = abeed.nextLine();
int count = first.length();
for(int i = 0;i<count;i++)
{
char ch = first.charAt(i);
int asc = (int)ch;
//Task2
import java.util.Scanner;
public class Task2 {
public static void main(String[] args) {
Scanner abeed= new Scanner(System.in);
System.out.println("Please enter your input");
String first = abeed.nextLine();
int count = first.length();
String rev="";
//Task5
import java.util.Scanner;
public class Task5{
public static void main(String[] args){
Scanner abeed = new Scanner(System.in);
System.out.println("Enter the input:");
String str = abeed.nextLine();
//Task7
import java.util.Scanner;
public class Task7 {
public static void main(String[] args) {
Scanner abeed= new Scanner(System.in);
System.out.println("Please enter your input");
String first = abeed.nextLine();
System.out.println("Please enter your input");
String second = abeed.nextLine();
int count1 = first.length();
int count2 = second.length();
}
if(bool== false)
{
result +=ch1;
}
bool= false;
}
if(bool== false)
{
result +=ch1;
}
bool= false;
}
System.out.println(result);
}
}
//Task9
import java.util.Scanner;
public class Task9 {
public static void main(String[] args) {
Scanner abeed = new Scanner(System.in);
if(password.length()>=8)
{
for(int i = 0; i < password.length(); i++)
{
char ch = password.charAt(i);
else if(!(ch >='A' && ch <='Z') && !(ch >='a' && ch<= 'z') && !(ch
>= '0' && ch <='9'))
{
hasSpecialChar= true;
}
}
}
if(isStrongPassword)
{
System.out.println("True");
}
else
{
System.out.println("False");
}
}
}