Android Open Source - MobileDev_beginner Demo






From Project

Back to project page MobileDev_beginner.

License

The source code is released under:

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...

If you think the Android project MobileDev_beginner listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

class Student {
  //what is this instance variable??
  private int studentId;
  private float qualifyingExamMarks;
  private char residentialStatus;
  private int yearOfEngg;
  /*from   ww w . j  a v  a 2  s.c o m*/
  //the studentid to set
  public void setStudentId (int studentId) {
    this.studentId = studentId;
  }
  
  //return the studentid
  public int getStudentId() {
    return studentId;
  }
  
  //the qualifyingExamMarks
  public void setQualifyingExamMarks (float qualifyingExamMarks) {
    this.qualifyingExamMarks = qualifyingExamMarks;
  }
  
  //return the qualifyingExamMarks
  public float getQualifyingExamMarks() {
    return qualifyingExamMarks;
  }
  
  //the residentialStatus to set
  public void setResidentialStatus (char residentialStatus) {
    this.residentialStatus = residentialStatus;
  }
  
  //return the residentialStatus
  public char getResidentialStatus() {
    return residentialStatus;
  }
  
  //the yearOfEngg to set
  public void setYearOfEngg (int yearOfEngg) {
    this.yearOfEngg = yearOfEngg;
  }
  
  //return the yearOfEngg
  public int getYearOfEngg() {
    return yearOfEngg;
  }
}

public class Demo {

  public static void main(String[] args) {
    Student student = new Student();
    student.setStudentId(1001);
    student.setQualifyingExamMarks(95.0f);
    student.setResidentialStatus('D');
    student.setYearOfEngg(2);
    
    System.out.println("Student ID                  :  " + student.getStudentId());
    System.out.println("Qualifying Exam Marks    :  " + student.getQualifyingExamMarks());
    System.out.println("Residential Status          :  " + student.getResidentialStatus());
    System.out.println("Year of Engineering          :  " + student.getYearOfEngg());    
  }
}




Java Source Code List

.CheckBoxTest.java
.Demo.java
.ListTest.java
.OurServlet.java
.TextFieldTest.java
com.corruptor.smssender.smsMenu.java
com.example.login.insidemenu.java
com.example.login.loginact.java
org.corruptor.Booking.java
org.corruptor.Car.java
org.corruptor.Customer.java
org.corruptor.Login.java
org.corruptor.Menu.java
org.corruptor.MyConnection.java
org.corruptor.MyMain.java
org.corruptor.MyScanner.java
org.corruptor.Reports.java