<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Create a class in Java that encapsulates a student's name and grade point average (GPA).
<|im_end|>
<|im_start|>assistant
public class Student {
 
 private String name;
 private double gpa;
 
 public Student(String name, double gpa) {
  this.name = name;
  this.gpa = gpa;
 }
 
 public String getName() {
  return name;
 }
 
 public double getGPA() {
  return gpa;
 }
}<|im_end|>
