Condensed fields by removing extra space.

This commit is contained in:
Umang Budhwar 2020-06-27 16:39:16 +05:30
parent 0e528b11d2
commit 5236d6cedd
1 changed files with 0 additions and 8 deletions

View File

@ -3,21 +3,13 @@ package com.baeldung.reflection.access.privatefields;
public class Person { public class Person {
private String name = "John"; private String name = "John";
private byte age = 30; private byte age = 30;
private short uidNumber = 5555; private short uidNumber = 5555;
private int pinCode = 452002; private int pinCode = 452002;
private long contactNumber = 123456789L; private long contactNumber = 123456789L;
private float height = 6.1242f; private float height = 6.1242f;
private double weight = 75.2564; private double weight = 75.2564;
private char gender = 'M'; private char gender = 'M';
private boolean active = true; private boolean active = true;
public String getName() { public String getName() {