Java : String cannot be resolved to a type. What's wrong in my code block ?

import java.util.Scanner;

public class Database{

string name;
int age;
long tel;

}

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

   Scanner input = new Scanner(System.in) ;
   Database obj = new Database();
   
   System.out.print("Enter Your Name : ");
   obj.name= input.nextLine();
   input.nextLine();
   
   System.out.print("Enter Your Age : ");
   obj.age = input.nextInt();
   
   System.out.println("Enter Your 6 - Digit Telephone Number");
   obj.tel = input.nextLong();
   
   
   
   
    
    
    
    
}

}

Java is a case-sensitive language, that is, uppercase and lowercase letters are treated differently.
Here “string” is not resolved because there is no class or data type named “string”. The first letter is small. “String” is correct (notice the first letter ‘S’ is in upper case here).
Also, you have defined two public classes in a single chunk of code. This is an error. Make the class named “Database” non-public, and save the file as Program.java", and everything will work fine.