text
stringlengths
3
1.18M
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.ocp.ocpfix.impl.D...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpfix.impl; /** * * @author Ilyaas Khatib */ public class Triangle extends Shape{ @Override void create() { int length = 5; int height = 5; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpfix.impl; /** * * @author Ilyaas Khatib */ public abstract class Shape { abstract void create(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpfix.impl; /** * * @author Ilyaas Khatib */ public class Draw { public void createShape(Shape s){ s.create(); } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.ocp.ocpviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.impl; /** * * @author Ilyaas Khatib */ public class Circle extends Shape{ Circle(){ super.shapeType=1; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.impl; /** * * @author Ilyaas Khatib */ public class Square extends Shape{ Square(){ super.shapeType=2; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.impl; /** * * @author Ilyaas Khatib */ public class Shape { public int shapeType; }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.impl; /** * * @author Ilyaas Khatib */ public class OcpViolation { public static void main(String[] args) { Draw d = new Draw(); d...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.ocp.ocpviolation.impl; /** * * @author Ilyaas Khatib */ public class Draw { void create(){ drawCircle(); drawSquare(); } public voi...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.srp.srpviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.srp.srpviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.srp.srpviolation.impl; /** * * @author Ilyaas Khatib */ public class Employee { private double total; private int hours; public double calc(){ ret...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.srp.srpfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.srp.srpfix.impl.C...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.srp.srpfix.impl; /** * * @author Ilyaas Khatib */ public class Calculator { private double total; public double calc(){ return total; } publi...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.srp.srpfix.impl; /** * * @author Ilyaas Khatib */ public class Employee { public int hours; public int hoursWorked(){ return hours; } ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.plk.plkviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkviolation.impl; /** * * @author Ilyaas Khatib */ public class Third { public void anotherMethod(){ Second s = new Second(); s.doSomething(); ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkviolation.impl; /** * * @author Ilyaas Khatib */ public class First { private String someVariable; public String getSomeVariable() { return someVari...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkviolation.impl; /** * * @author Ilyaas Khatib */ public class Second { public void doSomething(){ First f = new First(); f.getSomeVariable(); ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.plk.plkfix.impl.F...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkfix.impl; /** * * @author Ilyaas Khatib */ public class Third { public void anotherMethod(){ First f = new First(); f.getSomeVariable(); Seco...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkfix.impl; /** * * @author Ilyaas Khatib */ public class First { private String someVariable; public String getSomeVariable() { return someVariable;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.plk.plkfix.impl; /** * * @author Ilyaas Khatib */ public class Second { private String newVariableName; public String getNewVariableName() { return newVari...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.isp.ispfix.impl.C...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispfix; /** * * @author Ilyaas Khatib */ public interface Writer { public void write(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispfix.impl; import za.cput.ac.principles.isp.ispfix.Reader; /** * * @author Ilyaas Khatib */ public class Collector implements Reader{ @Override public void...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispfix.impl; import za.cput.ac.principles.isp.ispfix.Writer; /** * * @author Ilyaas Khatib */ public class WriterImpl implements Writer{ private String data; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispfix; /** * * @author Ilyaas Khatib */ public interface Reader { public void reader(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.isp.ispviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispviolation.impl; import za.cput.ac.principles.isp.ispviolation.SystemInter; /** * * @author Ilyaas Khatib */ public class SystemnWriter implements SystemInter{ pr...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.isp.ispviolation; /** * * @author Ilyaas Khatib */ public interface SystemInter { public void write(); public void read(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.lsk.lskviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskviolation.impl; import za.cput.ac.principles.lsk.lskfix.Employee; /** * * @author Ilyaas Khatib */ public class Manager implements Employee{ private String name;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskviolation.impl; import za.cput.ac.principles.lsk.lskviolation.Employee; /** * * @author Ilyaas Khatib */ public class EmployeeImpl implements Employee{ private S...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskviolation; /** * * @author Ilyaas Khatib */ public interface Employee { public int account(); public int hours(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.lsk.lskfix.impl.E...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskfix.impl; /** * * @author Ilyaas Khatib */ public class Manager extends EmployeeImpl{ private double bonus; private double pension; private double medical...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskfix.impl; import za.cput.ac.principles.lsk.lskfix.Employee; /** * * @author Ilyaas Khatib */ public class EmployeeImpl implements Employee{ private String name; pri...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.lsk.lskfix; /** * * @author Ilyaas Khatib */ public interface Employee { public int account(); public int hours(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.crp.crpfix.impl.E...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpfix; /** * * @author Ilyaas Khatib */ public interface BonusCalculator { double computeBonus(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpfix.impl; import za.cput.ac.principles.crp.crpfix.BonusCalculator; /** * * @author Ilyaas Khatib */ public abstract class Employee implements BonusCalculator{ pr...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpfix.impl; /** * * @author Ilyaas Khatib */ public class Manager extends Employee{ @Override public double computeBonus() { this.setBonus(this.getSal...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpfix.impl; /** * * @author Ilyaas Khatib */ public class TempEmp extends Employee{ @Override public int getHours() { return super.getHours(); } ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.crp.crpviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpviolation.impl; /** * * @author Ilyaas Khatib */ public class Employee { private double salary; private double rate; private int hours; private doubl...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpviolation.impl; /** * * @author Ilyaas Khatib */ public class Manager extends Employee{ private double bonus; private double pension; private double medic...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.crp.crpviolation.impl; /** * * @author Ilyaas Khatib */ public class TempEmp extends Employee{ private int hoursLeft; public int getHoursLeft() { return ho...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipviolation.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.dip.dipviol...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipviolation.impl; /** * * @author Ilyaas Khatib */ public class DatabaseWriter extends DateWriter{ @Override public void setData(String data) { super....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipviolation.impl; /** * * @author Ilyaas Khatib */ public class Collector extends DateWriter{ @Override public String getData() { return super.getData...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipviolation.impl; /** * * @author Ilyaas Khatib */ public class DateWriter { private String data; public String getData() { return data; } ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipfix.conf; import org.springframework.beans.factory.annotation.Configurable; import org.springframework.context.annotation.Bean; import za.cput.ac.principles.dip.dipfix.impl.C...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipfix; /** * * @author Ilyaas Khatib */ public interface Writer { public void writeData(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipfix.impl; import za.cput.ac.principles.dip.dipfix.Writer; /** * * @author Ilyaas Khatib */ public abstract class DataWriter implements Writer{ private String d...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipfix.impl; /** * * @author Ilyaas Khatib */ public class Collector extends DataWriter{ @Override public String getData() { return super.getData(); ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package za.cput.ac.principles.dip.dipfix.impl; import za.cput.ac.principles.dip.dipfix.Writer; /** * * @author Ilyaas Khatib */ public abstract class DBWriter implements Writer{ @Override pub...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.notnull.impl; import ac.za.cput.notnull.NotNull; /** * * @author Ilyaas Khatib */ public class NotNullImpl implements NotNull{ public int nullTest(int a){ return a; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.notnull; /** * * @author Ilyaas Khatib */ public interface NotNull { public int nullTest(int a); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.isnull; /** * * @author Ilyaas Khatib */ public interface IsNull { public String isNullTest(String a); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.isnull.impl; import ac.za.cput.isnull.IsNull; /** * * @author Ilyaas Khatib */ public class IsNullImpl implements IsNull{ public String isNullTest(String a){ return a; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.trueass.impl; import ac.za.cput.trueass.TrueAss; /** * * @author 210164344 */ public class TrueAssImpl implements TrueAss{ public boolean trueAssert(boolean a){ return a; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.trueass; /** * * @author 210164344 */ public interface TrueAss { public boolean trueAssert(boolean a); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.same; /** * * @author Ilyaas Khatib */ public interface Same { public String same(String a); public String compareSame(String b); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.same.impl; import ac.za.cput.same.Same; /** * * @author Ilyaas Khatib */ public class SameImpl implements Same{ public String same(String a){ return a; } public String compareS...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.message.impl; import ac.za.cput.message.Message; /** * * @author Ilyaas Khatib */ public class MessageImpl implements Message{ public int message(int a){ return a; } public int...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.message; /** * * @author Ilyaas Khatib */ public interface Message { public int message(int a); public int messageCom(int b); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.falseass.impl; import ac.za.cput.falseass.FalseAss; /** * * @author 210164344 */ public class FalseAssImpl implements FalseAss{ public boolean falseAssert(boolean a){ return a; } }...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.falseass; /** * * @author 210164344 */ public interface FalseAss { public boolean falseAssert(boolean a); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.notsame.impl; import ac.za.cput.notsame.NotSame; /** * * @author Ilyaas Khatib */ public class NotSameImpl implements NotSame{ public String notSame(String a){ return a; } publ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.notsame; /** * * @author Ilyaas Khatib */ public interface NotSame { public String notSame(String a); public String compareNot(String b); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.string.impl; import ac.za.cput.string.StringInter; /** * * @author Ilyaas Khatib */ public class StringImpl implements StringInter{ public String concat(String a,String b){ return a+b;...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.string; /** * * @author 210164344 */ public interface StringInter { public String concat(String a,String b); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.calculator.impl; import ac.za.cput.calculator.Calculator; /** * * @author Ilyaas Khatib */ public class CalculatorImpl implements Calculator{ public int add(int a, int b) { return(a+b)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.calculator; /** * * @author Ilyaas Khatib */ public interface Calculator { public int add(int a, int b); public int subtract(int a, int b); public double multiply(int a, int b); pub...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.fail.impl; import ac.za.cput.fail.Fail; /** * * @author Ilyaas Khatib */ public class FailImpl implements Fail{ public String err(String a){ return a; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.fail; /** * * @author Ilyaas Khatib */ public interface Fail { public String err(String a); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.boolcompare; /** * * @author Ilyaas Khatib */ public interface BoolCompare { public boolean boolC(boolean a); public boolean compareBool(boolean b); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ac.za.cput.boolcompare.impl; import ac.za.cput.boolcompare.BoolCompare; /** * * @author Ilyaas Khatib */ public class BoolCompareImpl implements BoolCompare{ public boolean boolC(boolean a){ retu...
package com.scp.demo; import com.example.scpdemo.R; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class WebFragment extends Fragment{ int mNum; /** * Create a new instance of Count...
package com.scp.demo; import com.example.scpdemo.R; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; public class NativeFragment extends Fragment { int mNum; /** ...
package com.scp.demo; import java.util.ArrayList; import com.example.scpdemo.R; import android.app.ActionBar; import android.app.Activity; import android.app.Fragment; import android.app.FragmentTransaction; import android.app.ActionBar.Tab; import android.content.Context; import android.os.Bundle; import android....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package firstactivity; /** * * @author Students Account */ public class FirstActivity { /** * @param args the command line arguments */ public static void main(String[] args) { // TODO cod...
class MyArrayList { private int[] MyArray; private int size; public MyArrayList(int value, int seed, int inc){ MyArray = new int[value]; size = value; for (int i = 0; i < size; i++) { MyArray[i] = seed; seed += inc; } } public void PrintList() { for (int i = 0; i < size; i++){ System.out.println(MyArra...
class MyArrayList { private int[] MyArray; private int size; public MyArrayList(int value, int seed, int inc){ MyArray = new int[value]; size = value; for (int i = 0; i < size; i++) { MyArray[i] = seed; seed += inc; } } public void PrintLIst(){ for (int i = 0; i < size; i++...
public class DoublyLinkedList { private Link first; private Link last; public DoublyLinkedList() { first = null; last = null; } public boolean isEmpty(){ return first == null; } public void insertFirst(long dd){ Link newLink = new Link(dd); if (isEmpty()) ...
class MyArrayList { private int[] MyArray; private int size; public MyArrayList(int value, int seed, int inc){ MyArray = new int[value]; size = value; for (int i = 0; i < size; i++) { MyArray[i] = seed; seed += inc; } } public void PrintLIst(){ for (int i = 0; i < size; i++...
class Queue{ private int maxSize; private char[] queueArray; private int queueFront; private int queueRear; private int count; public Queue(int max){ maxSize = max; queueArray = new char[maxSize]; queueFront = 0; queueRear = maxSize - 1; count = 0; } /* Method for Enqueue */...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import tw.com.softleader.json.jackson.entity.Question07Animal; import tw.com.softleader.json.jackson.entity.Question07Pets; import com.fasterxml.jackson.databind.ObjectMapper; public class Question07App { public static void main(St...
package tw.com.softleader.json.jackson.app; import java.io.File; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question08Entity; public class Question08App { public static void main(String[] args) { // read file File q8File = new File("c:\\quest...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question02Entity; public class Question02App { public static void main(String[] args) { // read file InputStream in = Questio...
package tw.com.softleader.json.jackson.app; import java.io.File; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question03Entity; public class Question03App { public static void main(String[] args) { // read file File q3File = new File("c:\\que...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question01Entity; import tw.com.softleader.json.jackson.entity.Question06Entity; public class Question06App { public static void main(...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question04Entity; import tw.com.softleader.json.jackson.entity.Question05Entity; public class Question05App { public static void main(...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import tw.com.softleader.json.jackson.entity.Question09Entity; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.joda.JodaModule; public class Question09App { public static void main(String[...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import com.fasterxml.jackson.databind.ObjectMapper; import tw.com.softleader.json.jackson.entity.Question02Entity; import tw.com.softleader.json.jackson.entity.Question04Entity; public class Question04App { public static void main(...
package tw.com.softleader.json.jackson.app; import java.io.InputStream; import tw.com.softleader.json.jackson.entity.Question01Entity; import com.fasterxml.jackson.databind.ObjectMapper; public class Question01App { public static void main(String[] args) { // Read file as InputStream.. InputSt...
package tw.com.softleader.json.jackson.entity; import java.util.List; import org.apache.commons.lang.builder.ToStringBuilder; public class Question04Entity { private Long id; private String account; private String name; private List<Phone> phones; @Override public String toString() ...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; public class Phone { private String number; @Override public String toString() { return ToStringBuilder.reflectionToString(this); } public String getNumber() { return number; } publi...
package tw.com.softleader.json.jackson.entity; import org.apache.commons.lang.builder.ToStringBuilder; import org.joda.time.LocalDate; import org.joda.time.LocalDateTime; public class Question09Entity { private Long id; private String account; private String name; private LocalDate birthday; ...