@BroCodez

public class Main {
    public static void main(String[] args) {

        String name = "Bro Code";

        int length = name.length();
        char letter = name.charAt(0);
        int index = name.indexOf(" ");
        int lastIndex = name.lastIndexOf("o");

        name = name.toUpperCase();
        name = name.toLowerCase();
        name = name.trim();
        name = name.replace("o", "a");
        
        if(name.isEmpty()){
            System.out.println("Your name is empty");
        }
        else{
            System.out.println("Hello " + name);
        }

        if(name.contains(" ")){
            System.out.println("Your name contains a space");
        }
        else{
            System.out.println("Your name DOESN'T contain any spaces");
        }

        if(name.equalsIgnoreCase("password")){
            System.out.println("Your name can't be password");
        }
        else{
            System.out.println("Hello " + name);
        }
    }
}

@pawankumar-hg9we

lots of love from india to my bro❤❤

@shivaGolivi

that  'a' relace is funny youn make fun all and  amazing man

@sanchitsharma2793

Thankyou brother 🙇

@VipapkStudiosOfficial

13/71, done!

@aaviff1810

13/71

@ilmiklo

public class Main 
{
	public static void main(String[] args)
	{
		String t = "this string is forty-one characters long!";
		
		for(int i=0;i<t.length();i++){
			System.out.printf("%c",t.charAt(i));
		}
		System.out.printf("\n%d",t.length());
	}
}

@ilmiklo

import java.util.Scanner;

public class Main 
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);

		System.out.printf("type your name(no spaces and 12 characters only):");
		String name = sc.nextLine();
		
		if (name.length() <= 12 && !(name.isEmpty())){
			if(!(name.contains(" "))){
				System.out.printf("you are good to go, %s",name);
			} else {
				System.out.printf("\nyour name contains spaces :: %s :: right way: %s", name, name.replace(" ",""));
			}
		} else {
			if(name.isEmpty()){
				System.out.printf("\nyour name doesn't exist");
			} else {
				System.out.printf("\nyour name is bigger than 12 characters");
			}
		}

		sc.close();
	}
}

@YouknowBram

import java.util.Scanner;
	
	public class Main{
		
		public static void main(String[] args) {
			
			Scanner sc = new Scanner(System.in);
			
			System.out.print("Enter your Password (10 char max): ");
			String password = sc.nextLine();
			
			int charamount = password.length();
			boolean isEmpty = password.isEmpty();
			if(isEmpty) {
				System.out.println("You haven't typed your Password.");
			}
			else if(charamount <= 10) {
				System.out.println("Password is complete.");
				System.out.println("Would you like to save your Password? (True/False)");
				boolean pwsave = sc.nextBoolean();
				
				if(pwsave) {
					System.out.println("Password succesfully saved.");
				}
				else {
					System.out.println("Password save is cancelled.");
				}
			}	
			else {
				System.out.println("Password cannot contain more than 10 characters.");
			}
			
			
            sc.close();
		}
	}