├── .metadata ├── .bak_0.log ├── .lock ├── .log ├── .plugins │ ├── org.eclipse.core.resources │ │ ├── .history │ │ │ ├── 1 │ │ │ │ └── 70ed84b40c95001d143fbd7a60d00246 │ │ │ ├── 2 │ │ │ │ ├── a01cb38b7194001d185bace9afb86939 │ │ │ │ └── e075fd470d95001d143fbd7a60d00246 │ │ │ ├── 3 │ │ │ │ ├── 002ca05e6094001d185bace9afb86939 │ │ │ │ ├── 6090a8d26a94001d185bace9afb86939 │ │ │ │ └── a0a4a46ded94001d143fbd7a60d00246 │ │ │ ├── 4 │ │ │ │ ├── 70e75c7e6c94001d185bace9afb86939 │ │ │ │ └── 906435fbe794001d143fbd7a60d00246 │ │ │ ├── 5 │ │ │ │ └── 0082b6550695001d143fbd7a60d00246 │ │ │ ├── 6 │ │ │ │ ├── 00c0982a5894001d185bace9afb86939 │ │ │ │ ├── 108b664e0d95001d143fbd7a60d00246 │ │ │ │ └── 30d9c0d5f494001d143fbd7a60d00246 │ │ │ ├── 10 │ │ │ │ ├── 4042982ee794001d143fbd7a60d00246 │ │ │ │ └── f0ba80f1f494001d143fbd7a60d00246 │ │ │ ├── 12 │ │ │ │ └── 6047e2255994001d185bace9afb86939 │ │ │ ├── 13 │ │ │ │ └── e0e3b48f7394001d185bace9afb86939 │ │ │ ├── 15 │ │ │ │ ├── 001596d07394001d185bace9afb86939 │ │ │ │ └── 5064c6886e94001d185bace9afb86939 │ │ │ ├── 16 │ │ │ │ ├── 50dba9697494001d185bace9afb86939 │ │ │ │ └── c0b02a927194001d185bace9afb86939 │ │ │ ├── 17 │ │ │ │ └── 905f1c296094001d185bace9afb86939 │ │ │ ├── 19 │ │ │ │ ├── 904140afec94001d143fbd7a60d00246 │ │ │ │ └── f04ec387ec94001d143fbd7a60d00246 │ │ │ ├── 20 │ │ │ │ ├── 2016fa006994001d185bace9afb86939 │ │ │ │ └── 601cb68f7394001d185bace9afb86939 │ │ │ ├── 21 │ │ │ │ ├── 2061a9ef6b94001d185bace9afb86939 │ │ │ │ └── c06b2abc7394001d185bace9afb86939 │ │ │ ├── 22 │ │ │ │ ├── 006b81b40c95001d143fbd7a60d00246 │ │ │ │ ├── 405a01471b95001d143fbd7a60d00246 │ │ │ │ └── a05a686f5e94001d185bace9afb86939 │ │ │ ├── 23 │ │ │ │ ├── 00e2deb95b94001d185bace9afb86939 │ │ │ │ ├── 908f574e1095001d143fbd7a60d00246 │ │ │ │ └── a00fcacd6694001d185bace9afb86939 │ │ │ ├── 24 │ │ │ │ └── 90f3a7ef0595001d143fbd7a60d00246 │ │ │ ├── 25 │ │ │ │ └── 502940047d94001d11ffe60941c1b04e │ │ │ ├── 26 │ │ │ │ └── d05cae5e6094001d185bace9afb86939 │ │ │ ├── 27 │ │ │ │ └── c0561bb56c94001d185bace9afb86939 │ │ │ ├── 29 │ │ │ │ └── 50bda1550d95001d143fbd7a60d00246 │ │ │ ├── 30 │ │ │ │ └── 90c138095c94001d185bace9afb86939 │ │ │ ├── 31 │ │ │ │ └── 806ffa560d95001d143fbd7a60d00246 │ │ │ ├── 37 │ │ │ │ ├── 4030bf87ec94001d143fbd7a60d00246 │ │ │ │ ├── 40d1d0747594001d185bace9afb86939 │ │ │ │ ├── 701bd264eb94001d143fbd7a60d00246 │ │ │ │ └── d069d18a5e94001d185bace9afb86939 │ │ │ ├── 40 │ │ │ │ ├── b09bd85a6b94001d185bace9afb86939 │ │ │ │ └── f066e8606394001d185bace9afb86939 │ │ │ ├── 41 │ │ │ │ └── 9040b6c57a94001d185bace9afb86939 │ │ │ ├── 42 │ │ │ │ ├── c0308addeb94001d143fbd7a60d00246 │ │ │ │ └── d080aecdf494001d143fbd7a60d00246 │ │ │ ├── 43 │ │ │ │ └── d06c3dd15894001d185bace9afb86939 │ │ │ ├── 44 │ │ │ │ ├── 30f34c5e7194001d185bace9afb86939 │ │ │ │ ├── 502b2be0f494001d143fbd7a60d00246 │ │ │ │ ├── 70d189c50e94001d185bace9afb86939 │ │ │ │ └── 80b1e2131c95001d143fbd7a60d00246 │ │ │ ├── 45 │ │ │ │ ├── 20c1c1caf494001d143fbd7a60d00246 │ │ │ │ └── 5082a3d4f494001d143fbd7a60d00246 │ │ │ ├── 46 │ │ │ │ └── 403fb88f7394001d185bace9afb86939 │ │ │ ├── 47 │ │ │ │ ├── 60cad06c5f94001d185bace9afb86939 │ │ │ │ └── a0b76274ed94001d143fbd7a60d00246 │ │ │ ├── 48 │ │ │ │ ├── 30e5789a6794001d185bace9afb86939 │ │ │ │ └── 7027975f6694001d185bace9afb86939 │ │ │ ├── 49 │ │ │ │ └── 707b3e3d0a95001d143fbd7a60d00246 │ │ │ ├── 50 │ │ │ │ └── f0f5da630695001d143fbd7a60d00246 │ │ │ ├── 51 │ │ │ │ ├── 60016a491195001d143fbd7a60d00246 │ │ │ │ └── c0415fd01c95001d143fbd7a60d00246 │ │ │ ├── 52 │ │ │ │ ├── 707f747f1095001d143fbd7a60d00246 │ │ │ │ └── 902d47b40e94001d185bace9afb86939 │ │ │ ├── 53 │ │ │ │ ├── 1034adfd7394001d185bace9afb86939 │ │ │ │ ├── 50cb2bbc7394001d185bace9afb86939 │ │ │ │ └── c085bf081395001d143fbd7a60d00246 │ │ │ ├── 54 │ │ │ │ ├── 300bd80e6994001d185bace9afb86939 │ │ │ │ └── e0300d426294001d185bace9afb86939 │ │ │ ├── 57 │ │ │ │ ├── 003500480d95001d143fbd7a60d00246 │ │ │ │ ├── b0b8b8df6b94001d185bace9afb86939 │ │ │ │ └── f04d60ff0595001d143fbd7a60d00246 │ │ │ ├── 58 │ │ │ │ ├── 90f4dca8f394001d143fbd7a60d00246 │ │ │ │ └── d07258a17b94001d11ffe60941c1b04e │ │ │ ├── 59 │ │ │ │ └── e0578a3d1295001d143fbd7a60d00246 │ │ │ ├── 62 │ │ │ │ └── 806b3d810395001d143fbd7a60d00246 │ │ │ ├── 63 │ │ │ │ └── 105efd525994001d185bace9afb86939 │ │ │ ├── 64 │ │ │ │ ├── 402ba66ded94001d143fbd7a60d00246 │ │ │ │ └── 60069fdded94001d143fbd7a60d00246 │ │ │ ├── 66 │ │ │ │ └── 7082cc125f94001d185bace9afb86939 │ │ │ ├── 67 │ │ │ │ └── c07aa9d26a94001d185bace9afb86939 │ │ │ ├── 68 │ │ │ │ └── 7053f7737094001d185bace9afb86939 │ │ │ ├── 69 │ │ │ │ └── 9083e4e95d94001d185bace9afb86939 │ │ │ ├── 70 │ │ │ │ ├── 10ab2705e994001d143fbd7a60d00246 │ │ │ │ └── 30e424710d95001d143fbd7a60d00246 │ │ │ ├── 71 │ │ │ │ └── 70280bb1ea94001d143fbd7a60d00246 │ │ │ ├── 74 │ │ │ │ └── e0fd15b1ea94001d143fbd7a60d00246 │ │ │ ├── 76 │ │ │ │ └── 0098dbd6f494001d143fbd7a60d00246 │ │ │ ├── 78 │ │ │ │ └── e0cb7ada0195001d143fbd7a60d00246 │ │ │ ├── 79 │ │ │ │ └── 706a49795c94001d185bace9afb86939 │ │ │ ├── 81 │ │ │ │ └── 809264476394001d185bace9afb86939 │ │ │ ├── 82 │ │ │ │ ├── 5054d1cc0195001d143fbd7a60d00246 │ │ │ │ └── e02a87007b94001d185bace9afb86939 │ │ │ ├── 83 │ │ │ │ └── 40ceb6de0995001d143fbd7a60d00246 │ │ │ ├── 85 │ │ │ │ ├── 2074c0df5b94001d185bace9afb86939 │ │ │ │ └── 90b496c37d94001d11ffe60941c1b04e │ │ │ ├── 88 │ │ │ │ └── 70d99a0f7e94001d11ffe60941c1b04e │ │ │ ├── 89 │ │ │ │ ├── 40cd6174ed94001d143fbd7a60d00246 │ │ │ │ ├── 90b96f2a6b94001d185bace9afb86939 │ │ │ │ └── e0c116130f95001d143fbd7a60d00246 │ │ │ ├── 90 │ │ │ │ ├── 6097a16ded94001d143fbd7a60d00246 │ │ │ │ └── 70a652a17b94001d11ffe60941c1b04e │ │ │ ├── 91 │ │ │ │ ├── 10f27a1c7494001d185bace9afb86939 │ │ │ │ └── c0c5d3e5eb94001d143fbd7a60d00246 │ │ │ ├── 92 │ │ │ │ └── 9061db980695001d143fbd7a60d00246 │ │ │ ├── 94 │ │ │ │ └── e0fa7cd46d94001d185bace9afb86939 │ │ │ ├── 95 │ │ │ │ ├── 00583bfbe794001d143fbd7a60d00246 │ │ │ │ └── 700b62b56694001d185bace9afb86939 │ │ │ ├── 97 │ │ │ │ ├── 60823d4d7394001d185bace9afb86939 │ │ │ │ ├── c02b5ca06b94001d185bace9afb86939 │ │ │ │ └── d0188cfe6794001d185bace9afb86939 │ │ │ ├── 98 │ │ │ │ ├── 70ba5c0cf794001d143fbd7a60d00246 │ │ │ │ └── 8087ad257494001d185bace9afb86939 │ │ │ ├── 99 │ │ │ │ ├── 806dbc9d1194001d185bace9afb86939 │ │ │ │ └── d09104296094001d185bace9afb86939 │ │ │ ├── 1d │ │ │ │ ├── 00244fa17b94001d11ffe60941c1b04e │ │ │ │ └── 90b783157d94001d11ffe60941c1b04e │ │ │ ├── 1f │ │ │ │ ├── 805e94760a95001d143fbd7a60d00246 │ │ │ │ └── c017c0e76f94001d185bace9afb86939 │ │ │ ├── 2a │ │ │ │ ├── 901c1ab1ea94001d143fbd7a60d00246 │ │ │ │ └── e0e375ef0195001d143fbd7a60d00246 │ │ │ ├── 2b │ │ │ │ ├── 105e95e40695001d143fbd7a60d00246 │ │ │ │ ├── 109e2dff6994001d185bace9afb86939 │ │ │ │ ├── 601c491c6394001d185bace9afb86939 │ │ │ │ ├── a097608a0395001d143fbd7a60d00246 │ │ │ │ ├── e099a6186694001d185bace9afb86939 │ │ │ │ └── f0c115395d94001d185bace9afb86939 │ │ │ ├── 2c │ │ │ │ ├── 00b8778f6c94001d185bace9afb86939 │ │ │ │ ├── 903a95e20195001d143fbd7a60d00246 │ │ │ │ ├── b01efdb0ea94001d143fbd7a60d00246 │ │ │ │ ├── d09eb98f7394001d185bace9afb86939 │ │ │ │ └── e0bee9737094001d185bace9afb86939 │ │ │ ├── 2d │ │ │ │ ├── 00759cdef494001d143fbd7a60d00246 │ │ │ │ ├── 30deec000295001d143fbd7a60d00246 │ │ │ │ ├── d06706626894001d185bace9afb86939 │ │ │ │ └── d0c8dddd0895001d143fbd7a60d00246 │ │ │ ├── 2e │ │ │ │ └── d0bb6074ed94001d143fbd7a60d00246 │ │ │ ├── 2f │ │ │ │ └── c0ac64d95894001d185bace9afb86939 │ │ │ ├── 3a │ │ │ │ ├── 1052529f0995001d143fbd7a60d00246 │ │ │ │ ├── d01c5e431095001d143fbd7a60d00246 │ │ │ │ └── f08d7a030295001d143fbd7a60d00246 │ │ │ ├── 3c │ │ │ │ ├── 806560776494001d185bace9afb86939 │ │ │ │ └── e0536374ed94001d143fbd7a60d00246 │ │ │ ├── 3e │ │ │ │ └── c0843d0f5e94001d185bace9afb86939 │ │ │ ├── 4a │ │ │ │ ├── 407c5e5f0b95001d143fbd7a60d00246 │ │ │ │ ├── 602075837194001d185bace9afb86939 │ │ │ │ └── b09ebda00595001d143fbd7a60d00246 │ │ │ ├── 4b │ │ │ │ └── 60dd644e0d95001d143fbd7a60d00246 │ │ │ ├── 4c │ │ │ │ ├── 80365a5f0b95001d143fbd7a60d00246 │ │ │ │ ├── b0b5b7385894001d185bace9afb86939 │ │ │ │ └── f097f6c50995001d143fbd7a60d00246 │ │ │ ├── 4f │ │ │ │ └── d02de61a5f94001d185bace9afb86939 │ │ │ ├── 5a │ │ │ │ ├── 701e4b5e7194001d185bace9afb86939 │ │ │ │ └── c04326710d95001d143fbd7a60d00246 │ │ │ ├── 5b │ │ │ │ ├── 00c84ada4d94001d185bace9afb86939 │ │ │ │ ├── 3046047d7594001d185bace9afb86939 │ │ │ │ └── 50654e641395001d143fbd7a60d00246 │ │ │ ├── 5c │ │ │ │ └── 809c674e0d95001d143fbd7a60d00246 │ │ │ ├── 5d │ │ │ │ ├── a0bf7a0c7c94001d11ffe60941c1b04e │ │ │ │ └── b0abab087b94001d185bace9afb86939 │ │ │ ├── 5f │ │ │ │ ├── 300aef9b0695001d143fbd7a60d00246 │ │ │ │ └── 301b03480d95001d143fbd7a60d00246 │ │ │ ├── 6b │ │ │ │ └── 3036b4de0995001d143fbd7a60d00246 │ │ │ ├── 6c │ │ │ │ ├── 80d5ec3b0795001d143fbd7a60d00246 │ │ │ │ └── d015700a6c94001d185bace9afb86939 │ │ │ ├── 6d │ │ │ │ ├── 60dc25b1ea94001d143fbd7a60d00246 │ │ │ │ ├── 70f6f9220795001d143fbd7a60d00246 │ │ │ │ └── a08423710d95001d143fbd7a60d00246 │ │ │ ├── 6e │ │ │ │ ├── 402426d9f494001d143fbd7a60d00246 │ │ │ │ └── c00ea3e60e95001d143fbd7a60d00246 │ │ │ ├── 6f │ │ │ │ └── c074455b0f95001d143fbd7a60d00246 │ │ │ ├── 7a │ │ │ │ ├── 90c52d05e994001d143fbd7a60d00246 │ │ │ │ └── a092b8181395001d143fbd7a60d00246 │ │ │ ├── 7b │ │ │ │ └── 801b8cf65d94001d185bace9afb86939 │ │ │ ├── 7e │ │ │ │ ├── 109304626894001d185bace9afb86939 │ │ │ │ └── f09af80d5994001d185bace9afb86939 │ │ │ ├── 7f │ │ │ │ └── b05a311d7d94001d11ffe60941c1b04e │ │ │ ├── 8a │ │ │ │ └── 3040909e7d94001d11ffe60941c1b04e │ │ │ ├── 8b │ │ │ │ ├── 1016b2fd7394001d185bace9afb86939 │ │ │ │ └── e018b3866794001d185bace9afb86939 │ │ │ ├── 8c │ │ │ │ └── 10e53da60695001d143fbd7a60d00246 │ │ │ ├── 8e │ │ │ │ └── 10805ba17b94001d11ffe60941c1b04e │ │ │ ├── 9a │ │ │ │ ├── b09d7d177b94001d185bace9afb86939 │ │ │ │ └── b0e4fa560d95001d143fbd7a60d00246 │ │ │ ├── 9b │ │ │ │ ├── b05cf41b1395001d143fbd7a60d00246 │ │ │ │ └── f06056380a95001d143fbd7a60d00246 │ │ │ ├── 9c │ │ │ │ └── 703592445f94001d185bace9afb86939 │ │ │ ├── a │ │ │ │ └── c056634e0d95001d143fbd7a60d00246 │ │ │ ├── a0 │ │ │ │ ├── 00ebb52d0795001d143fbd7a60d00246 │ │ │ │ ├── 2023694e0d95001d143fbd7a60d00246 │ │ │ │ └── 50919c905e94001d185bace9afb86939 │ │ │ ├── a1 │ │ │ │ ├── 604d7c797494001d185bace9afb86939 │ │ │ │ └── f0f24e785e94001d185bace9afb86939 │ │ │ ├── a3 │ │ │ │ └── b06225bc7394001d185bace9afb86939 │ │ │ ├── a4 │ │ │ │ └── 50a9d9980595001d143fbd7a60d00246 │ │ │ ├── a5 │ │ │ │ └── 90c0bb0d7b94001d185bace9afb86939 │ │ │ ├── a7 │ │ │ │ └── b0d260405d94001d185bace9afb86939 │ │ │ ├── a9 │ │ │ │ └── d0501eed6894001d185bace9afb86939 │ │ │ ├── aa │ │ │ │ ├── c0121dd87294001d185bace9afb86939 │ │ │ │ └── e04506296894001d185bace9afb86939 │ │ │ ├── ab │ │ │ │ └── c0f8020ee994001d143fbd7a60d00246 │ │ │ ├── ac │ │ │ │ ├── 1076371eeb94001d143fbd7a60d00246 │ │ │ │ └── 60e6eb505d94001d185bace9afb86939 │ │ │ ├── ae │ │ │ │ └── 609ec1e76f94001d185bace9afb86939 │ │ │ ├── af │ │ │ │ ├── 2048a1550d95001d143fbd7a60d00246 │ │ │ │ └── b0e201480d95001d143fbd7a60d00246 │ │ │ ├── b0 │ │ │ │ ├── 20753a4d7394001d185bace9afb86939 │ │ │ │ └── a0d77b926994001d185bace9afb86939 │ │ │ ├── b4 │ │ │ │ └── 60e5e9cc0195001d143fbd7a60d00246 │ │ │ ├── b6 │ │ │ │ └── a05247491b95001d143fbd7a60d00246 │ │ │ ├── ba │ │ │ │ ├── 90d7f3457b94001d185bace9afb86939 │ │ │ │ └── 90e2de861195001d143fbd7a60d00246 │ │ │ ├── bb │ │ │ │ ├── 000421180795001d143fbd7a60d00246 │ │ │ │ └── c0f9c4e76f94001d185bace9afb86939 │ │ │ ├── bc │ │ │ │ └── 8032a2550d95001d143fbd7a60d00246 │ │ │ ├── bd │ │ │ │ ├── 40d3f9560d95001d143fbd7a60d00246 │ │ │ │ └── d02f05750695001d143fbd7a60d00246 │ │ │ ├── be │ │ │ │ ├── 606210cc0e95001d143fbd7a60d00246 │ │ │ │ └── 708deacc5894001d185bace9afb86939 │ │ │ ├── bf │ │ │ │ └── b053d4747594001d185bace9afb86939 │ │ │ ├── c │ │ │ │ ├── 50b3e39f5e94001d185bace9afb86939 │ │ │ │ └── e0493c4d7394001d185bace9afb86939 │ │ │ ├── c0 │ │ │ │ └── e0e8f8560d95001d143fbd7a60d00246 │ │ │ ├── c1 │ │ │ │ └── 906555a17b94001d11ffe60941c1b04e │ │ │ ├── c2 │ │ │ │ └── f0f6a26ded94001d143fbd7a60d00246 │ │ │ ├── c3 │ │ │ │ ├── 20a0f218ec94001d143fbd7a60d00246 │ │ │ │ └── d02f56cb6e94001d185bace9afb86939 │ │ │ ├── c4 │ │ │ │ ├── a00c2bb75b94001d185bace9afb86939 │ │ │ │ └── c00146c74d94001d185bace9afb86939 │ │ │ ├── c6 │ │ │ │ └── 6021a6965e94001d185bace9afb86939 │ │ │ ├── c7 │ │ │ │ └── a063fc020a95001d143fbd7a60d00246 │ │ │ ├── c8 │ │ │ │ ├── b006addc6894001d185bace9afb86939 │ │ │ │ └── c0b35e005994001d185bace9afb86939 │ │ │ ├── c9 │ │ │ │ └── 60aaf3540a95001d143fbd7a60d00246 │ │ │ ├── ca │ │ │ │ └── d02029787194001d185bace9afb86939 │ │ │ ├── cb │ │ │ │ └── 50b37c177b94001d185bace9afb86939 │ │ │ ├── cc │ │ │ │ ├── 10c96374ed94001d143fbd7a60d00246 │ │ │ │ └── 60cdec956794001d185bace9afb86939 │ │ │ ├── cd │ │ │ │ ├── 00f3a66a0395001d143fbd7a60d00246 │ │ │ │ ├── 70fed9256394001d185bace9afb86939 │ │ │ │ ├── 80b368630395001d143fbd7a60d00246 │ │ │ │ └── c073abee5894001d185bace9afb86939 │ │ │ ├── cf │ │ │ │ └── a09f1d4e6794001d185bace9afb86939 │ │ │ ├── d │ │ │ │ ├── 3016186e0995001d143fbd7a60d00246 │ │ │ │ ├── 309d4f407494001d185bace9afb86939 │ │ │ │ ├── 60ac2a8f0f95001d143fbd7a60d00246 │ │ │ │ └── 60decd886e94001d185bace9afb86939 │ │ │ ├── d0 │ │ │ │ ├── 00c6c8caf494001d143fbd7a60d00246 │ │ │ │ └── 70dfbbdaf494001d143fbd7a60d00246 │ │ │ ├── d1 │ │ │ │ └── 10e81fec7294001d185bace9afb86939 │ │ │ ├── d2 │ │ │ │ ├── 208975a25b94001d185bace9afb86939 │ │ │ │ └── 60ca27710d95001d143fbd7a60d00246 │ │ │ ├── d3 │ │ │ │ └── a0cfe91d0995001d143fbd7a60d00246 │ │ │ ├── d5 │ │ │ │ ├── 402746865c94001d185bace9afb86939 │ │ │ │ └── e0ab24bd1394001d185bace9afb86939 │ │ │ ├── d6 │ │ │ │ └── 80fcfe470d95001d143fbd7a60d00246 │ │ │ ├── d7 │ │ │ │ ├── a0ed15bc5894001d185bace9afb86939 │ │ │ │ └── e042bccaf494001d143fbd7a60d00246 │ │ │ ├── d8 │ │ │ │ ├── e021f5b7f494001d143fbd7a60d00246 │ │ │ │ ├── e0af21710d95001d143fbd7a60d00246 │ │ │ │ └── e0ff0f6e0995001d143fbd7a60d00246 │ │ │ ├── d9 │ │ │ │ ├── 001d416ced94001d143fbd7a60d00246 │ │ │ │ └── e009c887ec94001d143fbd7a60d00246 │ │ │ ├── da │ │ │ │ ├── 10553d296094001d185bace9afb86939 │ │ │ │ └── 80fc03b1ea94001d143fbd7a60d00246 │ │ │ ├── db │ │ │ │ ├── 503ddce15d94001d185bace9afb86939 │ │ │ │ └── d098a9d76494001d185bace9afb86939 │ │ │ ├── dc │ │ │ │ ├── 10810c296094001d185bace9afb86939 │ │ │ │ └── e0cb7d61e194001d143fbd7a60d00246 │ │ │ ├── dd │ │ │ │ └── c0afbc696394001d185bace9afb86939 │ │ │ ├── de │ │ │ │ └── 50e2217d5f94001d185bace9afb86939 │ │ │ ├── df │ │ │ │ └── b0905693ec94001d143fbd7a60d00246 │ │ │ ├── e │ │ │ │ ├── 30113a67df94001d143fbd7a60d00246 │ │ │ │ └── 407b6d14ee94001d143fbd7a60d00246 │ │ │ ├── e0 │ │ │ │ └── 00e849c56b94001d185bace9afb86939 │ │ │ ├── e1 │ │ │ │ └── d09983760395001d143fbd7a60d00246 │ │ │ ├── e2 │ │ │ │ └── 403142d46c94001d185bace9afb86939 │ │ │ ├── e4 │ │ │ │ └── c0e1eb737094001d185bace9afb86939 │ │ │ ├── e6 │ │ │ │ └── 307878506a94001d185bace9afb86939 │ │ │ ├── e7 │ │ │ │ └── d0bf873d1295001d143fbd7a60d00246 │ │ │ ├── e8 │ │ │ │ ├── a0f2e2d30e95001d143fbd7a60d00246 │ │ │ │ └── f00cd5657194001d185bace9afb86939 │ │ │ ├── e9 │ │ │ │ └── 501674dd5f94001d185bace9afb86939 │ │ │ ├── eb │ │ │ │ ├── 301e7c61e194001d143fbd7a60d00246 │ │ │ │ ├── 606371676794001d185bace9afb86939 │ │ │ │ └── 80c3721d0c95001d143fbd7a60d00246 │ │ │ ├── ec │ │ │ │ ├── 10acbc8f7394001d185bace9afb86939 │ │ │ │ ├── b0a7a2550d95001d143fbd7a60d00246 │ │ │ │ └── f05e44c84d94001d185bace9afb86939 │ │ │ ├── ed │ │ │ │ └── e03a9e550d95001d143fbd7a60d00246 │ │ │ ├── ee │ │ │ │ └── 60252e7c1094001d185bace9afb86939 │ │ │ ├── ef │ │ │ │ └── f080fb560d95001d143fbd7a60d00246 │ │ │ ├── f0 │ │ │ │ ├── 90bcad700695001d143fbd7a60d00246 │ │ │ │ ├── a0c29f6ded94001d143fbd7a60d00246 │ │ │ │ └── f00ad3e46494001d185bace9afb86939 │ │ │ ├── f2 │ │ │ │ └── c0d349cb6e94001d185bace9afb86939 │ │ │ ├── f3 │ │ │ │ └── 30d3cd8d5994001d185bace9afb86939 │ │ │ ├── f5 │ │ │ │ ├── 400972f70e95001d143fbd7a60d00246 │ │ │ │ ├── 701613821094001d185bace9afb86939 │ │ │ │ └── 9070a0405994001d185bace9afb86939 │ │ │ ├── f6 │ │ │ │ ├── 5077f6c54d94001d185bace9afb86939 │ │ │ │ └── 709957380a95001d143fbd7a60d00246 │ │ │ ├── f7 │ │ │ │ ├── 0028c7a80695001d143fbd7a60d00246 │ │ │ │ └── 307d85007b94001d185bace9afb86939 │ │ │ ├── f8 │ │ │ │ └── 007bf7330795001d143fbd7a60d00246 │ │ │ ├── fa │ │ │ │ ├── 20bb1f24ee94001d143fbd7a60d00246 │ │ │ │ ├── 604437345d94001d185bace9afb86939 │ │ │ │ └── e0f6195a7c94001d11ffe60941c1b04e │ │ │ ├── fb │ │ │ │ ├── 60d586ddeb94001d143fbd7a60d00246 │ │ │ │ └── 804d310f1395001d143fbd7a60d00246 │ │ │ ├── fc │ │ │ │ └── 10678b5e0695001d143fbd7a60d00246 │ │ │ ├── fd │ │ │ │ └── 4038559f0995001d143fbd7a60d00246 │ │ │ ├── fe │ │ │ │ └── e07938707494001d185bace9afb86939 │ │ │ └── ff │ │ │ │ └── f0a3920b0895001d143fbd7a60d00246 │ │ ├── .projects │ │ │ ├── .org.eclipse.egit.core.cmp │ │ │ │ └── .location │ │ │ ├── Practical(IMPLEMENTATION) │ │ │ │ ├── .indexes │ │ │ │ │ ├── af │ │ │ │ │ │ └── history.index │ │ │ │ │ └── e4 │ │ │ │ │ │ ├── 81 │ │ │ │ │ │ └── c7 │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── 4b │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── 5c │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── d6 │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── d8 │ │ │ │ │ │ ├── 75 │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── 5d │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ └── history.index │ │ │ │ │ │ └── history.index │ │ │ │ ├── .markers │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ └── state.dat │ │ │ └── Theory │ │ │ │ ├── .indexes │ │ │ │ ├── af │ │ │ │ │ └── history.index │ │ │ │ └── e4 │ │ │ │ │ └── history.index │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ └── state.dat │ │ ├── .root │ │ │ ├── .indexes │ │ │ │ ├── history.version │ │ │ │ ├── properties.index │ │ │ │ └── properties.version │ │ │ ├── .markers │ │ │ └── 13.tree │ │ └── .safetable │ │ │ └── org.eclipse.core.resources │ ├── org.eclipse.core.runtime │ │ └── .settings │ │ │ ├── Cloud Foundry.prefs │ │ │ ├── Docker.prefs │ │ │ ├── org.eclipse.core.resources.prefs │ │ │ ├── org.eclipse.debug.ui.prefs │ │ │ ├── org.eclipse.egit.core.prefs │ │ │ ├── org.eclipse.jdt.core.prefs │ │ │ ├── org.eclipse.jdt.debug.ui.prefs │ │ │ ├── org.eclipse.jdt.junit.core.prefs │ │ │ ├── org.eclipse.jdt.junit.prefs │ │ │ ├── org.eclipse.jdt.launching.prefs │ │ │ ├── org.eclipse.jdt.ui.prefs │ │ │ ├── org.eclipse.jsch.core.prefs │ │ │ ├── org.eclipse.m2e.apt.prefs │ │ │ ├── org.eclipse.m2e.discovery.prefs │ │ │ ├── org.eclipse.pde.api.tools.prefs │ │ │ ├── org.eclipse.pde.core.prefs │ │ │ ├── org.eclipse.ui.editors.prefs │ │ │ ├── org.eclipse.ui.ide.prefs │ │ │ ├── org.eclipse.ui.workbench.prefs │ │ │ ├── org.eclipse.urischeme.prefs │ │ │ ├── org.springframework.ide.eclipse.boot.dash.prefs │ │ │ ├── org.springframework.ide.eclipse.boot.launch.prefs │ │ │ ├── org.springframework.ide.eclipse.imports.prefs │ │ │ ├── org.springsource.ide.eclipse.commons.frameworks.core.prefs │ │ │ └── org.springsource.ide.eclipse.commons.ui.prefs │ ├── org.eclipse.debug.core │ │ └── .launches │ │ │ ├── Array_Deque.launch │ │ │ ├── Array_List.launch │ │ │ ├── Hash_Set.launch │ │ │ ├── Linked_Hash_Set.launch │ │ │ ├── Linked_List (1).launch │ │ │ ├── Linked_List.launch │ │ │ ├── Main.launch │ │ │ ├── Priority_Queue.launch │ │ │ ├── StacK.launch │ │ │ ├── Tree_Set.launch │ │ │ └── VectoR.launch │ ├── org.eclipse.debug.ui │ │ ├── dialog_settings.xml │ │ └── launchConfigurationHistory.xml │ ├── org.eclipse.e4.workbench │ │ └── workbench.xmi │ ├── org.eclipse.egit.core │ │ └── .org.eclipse.egit.core.cmp │ │ │ ├── .project │ │ │ └── .settings │ │ │ └── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core │ │ ├── 1021801232.index │ │ ├── 1865797976.index │ │ ├── 2157735601.index │ │ ├── 380491998.index │ │ ├── assumedExternalFilesCache │ │ ├── externalFilesCache │ │ ├── externalLibsTimeStamps │ │ ├── javaLikeNames.txt │ │ ├── nonChainingJarsCache │ │ ├── savedIndexNames.txt │ │ └── variablesAndContainers.dat │ ├── org.eclipse.jdt.debug.ui │ │ └── dialog_settings.xml │ ├── org.eclipse.jdt.launching │ │ ├── .install.xml │ │ └── libraryInfos.xml │ ├── org.eclipse.jdt.ui │ │ ├── OpenTypeHistory.xml │ │ ├── QualifiedTypeNameHistory.xml │ │ └── dialog_settings.xml │ ├── org.eclipse.ltk.core.refactoring │ │ └── .refactorings │ │ │ └── Practical(IMPLEMENTATION) │ │ │ └── 2023 │ │ │ └── 1 │ │ │ ├── 2 │ │ │ ├── refactorings.history │ │ │ └── refactorings.index │ │ │ └── 3 │ │ │ ├── refactorings.history │ │ │ └── refactorings.index │ ├── org.eclipse.ltk.ui.refactoring │ │ └── dialog_settings.xml │ ├── org.eclipse.m2e.core │ │ └── workspaceState.ser │ ├── org.eclipse.m2e.logback.configuration │ │ ├── 0.log │ │ └── logback.2.0.0.20220705-1221.xml │ ├── org.eclipse.pde.core │ │ ├── .cache │ │ │ └── clean-cache.properties │ │ └── .local_targets │ │ │ └── 1673731575815.target │ ├── org.eclipse.tips.ide │ │ └── dialog_settings.xml │ ├── org.eclipse.tm.terminal.view.ui │ │ └── .executables │ │ │ └── data.properties │ ├── org.eclipse.ui.ide │ │ └── dialog_settings.xml │ └── org.eclipse.ui.workbench │ │ ├── dialog_settings.xml │ │ └── workingsets.xml └── version.ini ├── .project ├── Practical(IMPLEMENTATION) ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── Arrays_Class │ │ └── Arrays_Class.class │ ├── Collections_Class.class │ ├── List_Interface │ │ ├── Array_List.class │ │ ├── Linked_List.class │ │ ├── Main.class │ │ ├── StacK.class │ │ └── VectoR.class │ ├── Map_Interface │ │ ├── Hash_Map.class │ │ ├── Introduction.class │ │ ├── Linked_Hash_Map.class │ │ └── Tree_Map.class │ ├── Queue_Interface │ │ ├── Array_Deque.class │ │ ├── Introduction.class │ │ ├── Linked_List.class │ │ └── Priority_Queue.class │ └── Set_Interface │ │ ├── Hash_Set.class │ │ ├── Linked_Hash_Set.class │ │ └── Tree_Set.class └── src │ ├── Arrays_Class │ └── Arrays_Class.java │ ├── Collections_Class.java │ ├── List_Interface │ ├── Array_List.java │ ├── Linked_List.java │ ├── Main.java │ ├── StacK.java │ └── VectoR.java │ ├── Map_Interface │ ├── Hash_Map.java │ ├── Introduction.java │ ├── Linked_Hash_Map.java │ └── Tree_Map.java │ ├── Queue_Interface │ ├── Array_Deque.java │ ├── Introduction.java │ ├── Linked_List.java │ └── Priority_Queue.java │ └── Set_Interface │ ├── Hash_Set.java │ ├── Linked_Hash_Set.java │ └── Tree_Set.java ├── README.md └── Theory ├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.core.prefs ├── bin ├── Collection_Framework_In_JAVA.class ├── Collection_Hierarchy.class ├── What_Is_Collection.class └── What_Is_Framework.class └── src ├── Collection_Framework_In_JAVA.java ├── Collection_Hierarchy.java ├── What_Is_Collection.java └── What_Is_Framework.java /.metadata/.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.lock -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/10/4042982ee794001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/10/4042982ee794001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/10/f0ba80f1f494001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/10/f0ba80f1f494001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/13/e0e3b48f7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Stack { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/16/50dba9697494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | import java.util.Stack; 5 | 6 | public class StacK { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | 12 | Stack mystack = new Stack<>(); 13 | 14 | 15 | mystack.push(null); 16 | 17 | 18 | 19 | 20 | 21 | } 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/17/905f1c296094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class ArrayList { 7 | 8 | 9 | List arr = new Array_List<>(); 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/19/904140afec94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.TreeSet; 4 | 5 | public class Tree_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | TreeSet tree1 = new TreeSet<>(); 12 | 13 | tree1.add(1); 14 | tree1.add(0); 15 | tree1.add(90); 16 | tree1.add(3); 17 | tree1.add(2); 18 | tree1.add(10); 19 | tree1.add(5); 20 | tree1.add(6); 21 | 22 | System.out.println(tree1); 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | } 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/1d/90b783157d94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | 5 | public class Hash_Set { 6 | 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | 13 | HashSet myset = new HashSet<>(); 14 | 15 | myset.add(1); 16 | myset.add(3); 17 | myset.add(40); 18 | myset.add(2); 19 | myset.add(7); 20 | myset.add(5); 21 | myset.add(9); 22 | myset.add(10); 23 | 24 | 25 | System.out.println(myset); 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/1f/805e94760a95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Queue; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | Queue list1 = new LinkedList<>(); 12 | 13 | list1.add(1); 14 | list1.add(null); 15 | list1.add(67); 16 | list1.add(67); 17 | list1.add(90); 18 | list1.add(50); 19 | list1.add(20); 20 | list1.add(-1); 21 | list1.add(60); 22 | System.out.println(list1); 23 | 24 | } 25 | 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/20/2016fa006994001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | 23 | System.out.println(mylist); 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/21/c06b2abc7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | 5 | public class StacK { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | List mystack = new StacK(); 11 | } 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/23/908f574e1095001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.ArrayDeque; 4 | 5 | public class Array_Deque { 6 | 7 | public static void main(String[] args) { 8 | 9 | ArrayDeque aq1 = new ArrayDeque<>(); 10 | 11 | aq1.add(23); 12 | aq1.add(56); 13 | aq1.offerFirst(1); 14 | aq1.offer(4); 15 | aq1.offer(56); 16 | 17 | 18 | System.out.println(aq1); 19 | 20 | 21 | 22 | } 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/24/90f3a7ef0595001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | 25 | 26 | // p1.add(1.234); 27 | // p1.add(true); 28 | 29 | // System.out.println(p1); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 34 | 35 | 1.allow duplicate elements 36 | 2.order of insertion is not maintain 37 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 38 | 39 | 40 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 41 | OFFER METHOD : if the element added successfully so they return true else return false 42 | 43 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 44 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 45 | 46 | 47 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 48 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | */ 57 | 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/25/502940047d94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | 5 | public class Hash_Set { 6 | 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | 13 | HashSet myset = new HashSet<>(); 14 | 15 | myset.add(1); 16 | myset.add(3); 17 | myset.add(4); 18 | myset.add(2); 19 | myset.add(7); 20 | myset.add(5); 21 | myset.add(9); 22 | myset.add(10); 23 | 24 | 25 | System.out.println(myset); 26 | 27 | 28 | 29 | 30 | } 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/26/d05cae5e6094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Array_List { 7 | 8 | 9 | List arr = new Array_List<>(); 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2a/e0e375ef0195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | // p1.add(1.234); 16 | // p1.add(true); 17 | 18 | System.out.println(p1); 19 | 20 | 21 | 22 | } 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2b/105e95e40695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | // p1.clear(); 29 | // System.out.println(p1.remove()); 30 | System.out.println(p1.poll()); 31 | 32 | 33 | 34 | 35 | // System.out.println(p1); 36 | 37 | 38 | /* 39 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 40 | 41 | 1.allow duplicate elements 42 | 2.order of insertion is not maintain 43 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 44 | 45 | 46 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 47 | OFFER METHOD : if the element added successfully so they return true else return false 48 | 49 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 50 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 51 | 52 | 53 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 54 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | */ 63 | 64 | } 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | } 75 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2b/109e2dff6994001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | mylist.add("Aatish"); 23 | mylist.add(null); 24 | 25 | 26 | 27 | System.out.println(mylist); 28 | 29 | System.out.println(mylist.get(4)); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT LINKEDLIST 34 | 35 | 1.order of insertion is maintain 36 | 2.store the element on doubly LinkedList data structure 37 | 3.null value is allowed 38 | 39 | 40 | */ 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | } 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2b/601c491c6394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Array_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | List arr = new ArrayList<>(); 11 | 12 | // ADDING ELEMENT IN ARRAYLIST 13 | int num = 1; 14 | while(num < 11) { 15 | arr.add(num); 16 | num++; 17 | } 18 | 19 | System.out.println(arr); 20 | 21 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 22 | 1.using an iterator 23 | 2.using a for loop 24 | 3.using a for-each loop 25 | 4.using a while loop 26 | 5.using the ListIterator class 27 | 6.using the forEach() method */ 28 | 29 | 30 | 31 | // 3.using a for-each loop 32 | 33 | // here we use wrapper class because 34 | // collection are only store objects 35 | // and wrapper class is the representation 36 | // of primitives data type like int , char and so on 37 | 38 | // when we add primitive data type 39 | // in collections they automatically 40 | // converted into their respective Wrapper class 41 | // and this process is called AUTO BOXING 42 | 43 | // and we access or use the element 44 | // that are converted into their 45 | // respective Wrapper class they 46 | // automatically converted into 47 | // their original data type that is 48 | // primitive data type and this process 49 | // is called AUTO UNBOXING 50 | 51 | 52 | 53 | for(Integer el : arr) { 54 | System.out.println(el); 55 | } 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | } 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2b/a097608a0395001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(53); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(10); 20 | p1.add(53); 21 | 22 | // p1.add(1.234); 23 | // p1.add(true); 24 | 25 | System.out.println(p1); 26 | 27 | 28 | 29 | } 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2b/e099a6186694001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | /** 10 | * @param args 11 | */ 12 | public static void main(String[] args) { 13 | 14 | List arr = new ArrayList<>(); 15 | 16 | // ADDING ELEMENT IN ARRAYLIST 17 | int num = 1; 18 | while(num < 11) { 19 | arr.add(num); 20 | num++; 21 | } 22 | 23 | System.out.println(arr); 24 | 25 | 26 | 27 | 28 | 29 | /* 30 | POINTS TO BE REMEMBER ABOUT ARRAYLIST :- 31 | 32 | 1.index basing storing 33 | 2.order of insertion is maintain 34 | 3.access element by their name , index 35 | 36 | 37 | 38 | 39 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 40 | 1.using an iterator 41 | 2.using a for loop 42 | 3.using a for-each loop 43 | 4.using a while loop 44 | 5.using the ListIterator class 45 | 6.using the forEach() method */ 46 | 47 | 48 | 49 | // 3.using a for-each loop 50 | 51 | // here we use wrapper class because 52 | // collection are only store objects 53 | // and wrapper class is the representation 54 | // of primitives data type like int , char and so on 55 | 56 | // when we add primitive data type 57 | // in collections they automatically 58 | // converted into their respective Wrapper class 59 | // and this process is called AUTO BOXING 60 | 61 | // and we access or use the element 62 | // that are converted into their 63 | // respective Wrapper class they 64 | // automatically converted into 65 | // their original data type that is 66 | // primitive data type and this process 67 | // is called AUTO UNBOXING 68 | 69 | 70 | 71 | for(Integer el : arr) { 72 | System.out.println(el); 73 | } 74 | 75 | 76 | 77 | List names = new ArrayList<>(); 78 | 79 | names.add("Shubham"); 80 | names.add("Dev"); 81 | names.add("Boby"); 82 | names.add("Guarav"); 83 | names.add("Aman"); 84 | names.add("Chinmay"); 85 | names.add("Parth"); 86 | names.add("Atul"); 87 | names.add("Brijesh"); 88 | names.add("Akash"); 89 | // names.add(null); 90 | 91 | 92 | for(String el : names) { 93 | 94 | StringBuffer s = new StringBuffer(el); 95 | 96 | System.out.println(s+"\t"+" name Size is "+s.length()+" reverse -> "+s.reverse()); 97 | 98 | 99 | } 100 | 101 | 102 | 103 | // 1.using an iterator 104 | 105 | // for traversing through iterator first 106 | // we have gain the object of iterator 107 | // from collection interface 108 | // and after store into any variable 109 | // we can only traversing in forward direction (left to right) 110 | 111 | Iterator it = names.iterator(); 112 | 113 | 114 | // here hasnext is method which check that the element is null 115 | // or present 116 | while(it.hasNext()) { 117 | String g = it.next(); 118 | System.out.println(g); 119 | } 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | } 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | } 146 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2c/903a95e20195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(1.234); 16 | p1.add(true); 17 | 18 | System.out.println(p1); 19 | 20 | 21 | 22 | } 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2c/d09eb98f7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | 5 | public class Stack { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | List mystack = new StacK(); 11 | } 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2d/30deec000295001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(5); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(1); 20 | 21 | // p1.add(1.234); 22 | // p1.add(true); 23 | 24 | System.out.println(p1); 25 | 26 | 27 | 28 | } 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/2d/d0c8dddd0895001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in ascending order 45 | 4.we can store only one data type variable(HOMOGENIOUS) we can say that 46 | priority queue is always TYPE SAFE 47 | 48 | 49 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 50 | OFFER METHOD : if the element added successfully so they return true else return false 51 | 52 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 53 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 54 | 55 | 56 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 57 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | */ 66 | 67 | } 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | } 78 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/3/6090a8d26a94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | mylist.add("Aatish"); 23 | mylist.add(null); 24 | 25 | 26 | 27 | System.out.println(mylist); 28 | 29 | System.out.println(mylist.get(4)); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT LINKEDLIST 34 | 35 | 1.order of insertion is maintain 36 | 2.store the element on doubly LinkedList data structure 37 | 3.null value is allowed 38 | 4.store duplicate element 39 | 40 | 41 | 42 | 43 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN LINKEDLIST 44 | 1.using an iterator 45 | 2.using a for loop 46 | 3.using a for-each loop 47 | 4.using a while loop 48 | 5.using the ListIterator class 49 | 6.using the forEach() method */ 50 | 51 | 52 | 53 | 54 | //3.using a for-each loop 55 | 56 | for(String el : mylist) { 57 | System.out.println(el); 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | } 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | } 81 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/37/701bd264eb94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.Iterator; 4 | import java.util.LinkedHashSet; 5 | import java.util.ListIterator; 6 | 7 | public class Linked_Hash_Set { 8 | 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | LinkedHashSet link1 = new LinkedHashSet<>(); 14 | 15 | 16 | link1.add(1); 17 | link1.add(6); 18 | link1.add(90); 19 | link1.add(2); 20 | link1.add(5); 21 | link1.add(0); 22 | link1.add(70); 23 | link1.add(7); 24 | link1.add(9); 25 | link1.add(14); 26 | link1.add(61); 27 | link1.add(3); 28 | 29 | System.out.println(link1); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT LINKEDHASHSET 34 | 35 | 1.store only unique elements 36 | 2.order of insertion is maintain 37 | 3.size is DYNAMIC 38 | 4.we can not access the elements by index (not index-basing collection) 39 | 5.if we want to access elements of hashSet so first we have to converted into arrayList 40 | 6.we can traverse both type safe or unType safe of collections 41 | 42 | 43 | 44 | 45 | 46 | 47 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN LINKEDLIST 48 | 49 | 1.using a for-each loop (ONLY SUPPORTED TYPE SAFE COLECTION) 50 | 2.using an iterator 51 | 3.using the forEach() method */ 52 | 53 | 54 | System.out.println("----------------------For-Each Loop----------------------"); 55 | 56 | /* 1.using a for-each loop 57 | 58 | here we use wrapper class because 59 | collection are only store objects 60 | and wrapper class is the representation 61 | of primitives data type like int , char and so on 62 | 63 | when we add primitive data type 64 | in collections they automatically 65 | converted into their respective Wrapper class 66 | and this process is called AUTO BOXING 67 | 68 | and we access or use the element 69 | that are converted into their 70 | respective Wrapper class they 71 | automatically converted into 72 | their original data type that is 73 | primitive data type and this process 74 | is called AUTO UNBOXING */ 75 | 76 | for(Integer el : link1) { 77 | System.out.println(el); 78 | } 79 | 80 | 81 | 82 | System.out.println("----------------------Iterator----------------------"); 83 | 84 | /* 2.using an iterator 85 | 86 | for traversing through iterator first 87 | we have gain the object of iterator 88 | from collection interface 89 | and after store into any variable 90 | we can only traversing in forward direction (left to right) */ 91 | 92 | Iterator itr1 = link1.iterator(); 93 | 94 | 95 | //here hasNext is method which check that the element is null 96 | //or present 97 | 98 | 99 | while(itr1.hasNext()) { 100 | System.out.println(itr1.next()); 101 | } 102 | 103 | 104 | 105 | 106 | 107 | 108 | System.out.println("----------------------For-Each Method----------------------"); 109 | 110 | /* 3.using the forEach() method (JAVA 8 FEATURE) 111 | 112 | here we use lambda Expression for traversing 113 | we can give any name for e */ 114 | 115 | 116 | link1.forEach(el->{ 117 | System.out.println(el); 118 | }); 119 | 120 | 121 | 122 | 123 | System.out.println("----------------------For-Each Method----------------------"); 124 | 125 | 126 | 127 | LinkedHashSet link2 = new LinkedHashSet<>(); 128 | 129 | link2.add("Shubham"); 130 | link2.add(11); 131 | link2.add(6232133187l); 132 | link2.add(59.7); 133 | link2.add(true); 134 | link2.add("Blue"); 135 | 136 | System.out.println(link2); 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | } 150 | 151 | 152 | } 153 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/3a/d01c5e431095001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | public class Array_Deque { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/3a/f08d7a030295001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(5); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(10); 20 | 21 | // p1.add(1.234); 22 | // p1.add(true); 23 | 24 | System.out.println(p1); 25 | 26 | 27 | 28 | } 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/3c/806560776494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | /** 10 | * @param args 11 | */ 12 | public static void main(String[] args) { 13 | 14 | List arr = new ArrayList<>(); 15 | 16 | // ADDING ELEMENT IN ARRAYLIST 17 | int num = 1; 18 | while(num < 11) { 19 | arr.add(num); 20 | num++; 21 | } 22 | 23 | System.out.println(arr); 24 | 25 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 26 | 1.using an iterator 27 | 2.using a for loop 28 | 3.using a for-each loop 29 | 4.using a while loop 30 | 5.using the ListIterator class 31 | 6.using the forEach() method */ 32 | 33 | 34 | 35 | // 3.using a for-each loop 36 | 37 | // here we use wrapper class because 38 | // collection are only store objects 39 | // and wrapper class is the representation 40 | // of primitives data type like int , char and so on 41 | 42 | // when we add primitive data type 43 | // in collections they automatically 44 | // converted into their respective Wrapper class 45 | // and this process is called AUTO BOXING 46 | 47 | // and we access or use the element 48 | // that are converted into their 49 | // respective Wrapper class they 50 | // automatically converted into 51 | // their original data type that is 52 | // primitive data type and this process 53 | // is called AUTO UNBOXING 54 | 55 | 56 | 57 | for(Integer el : arr) { 58 | System.out.println(el); 59 | } 60 | 61 | 62 | 63 | List names = new ArrayList<>(); 64 | 65 | names.add("Shubham"); 66 | names.add("Dev"); 67 | names.add("Boby"); 68 | names.add("Guarav"); 69 | names.add("Aman"); 70 | names.add("Chinmay"); 71 | names.add("Parth"); 72 | names.add("Atul"); 73 | names.add("Brijesh"); 74 | names.add("Akash"); 75 | 76 | 77 | for(String el : names) { 78 | 79 | StringBuffer s = new StringBuffer(el); 80 | 81 | System.out.println(s+"\t"+" name Size is "+s.length()+" reverse -> "+s.reverse()); 82 | 83 | 84 | } 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | } 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | } 112 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/4/906435fbe794001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | import java.util.ListIterator; 6 | 7 | public class Hash_Set { 8 | 9 | 10 | 11 | public static void main(String[] args) { 12 | 13 | 14 | 15 | HashSet myset = new HashSet<>(); 16 | 17 | myset.add(11); 18 | myset.add(3); 19 | myset.add(40); 20 | myset.add(2); 21 | myset.add(7); 22 | myset.add(5); 23 | myset.add(9); 24 | myset.add(10); 25 | myset.add(76); 26 | 27 | 28 | System.out.println(myset); 29 | 30 | 31 | /* 32 | POINTS TO BE REMEMBER ABOUT HASHSET 33 | 34 | 1.store only unique elements 35 | 2.order of insertion is not maintain 36 | 3.size is DYNAMIC 37 | 4.store the elements in random order 38 | 5.we can not access the elements by index (not index-basing collection) 39 | 6.if we want to access elements of hashSet so first we have to converted into arrayList */ 40 | 41 | for(Integer el : myset) { 42 | System.out.println(el); 43 | } 44 | 45 | 46 | Iterator itr1 = myset.iterator(); 47 | 48 | while(itr1.hasNext()) { 49 | System.out.println(itr1.next()); 50 | } 51 | 52 | 53 | 54 | myset.forEach(e->{ 55 | System.out.println(e); 56 | }); 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | } 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/40/f066e8606394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | public static void main(String[] args) { 10 | 11 | List arr = new ArrayList<>(); 12 | 13 | // ADDING ELEMENT IN ARRAYLIST 14 | int num = 1; 15 | while(num < 11) { 16 | arr.add(num); 17 | num++; 18 | } 19 | 20 | System.out.println(arr); 21 | 22 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 23 | 1.using an iterator 24 | 2.using a for loop 25 | 3.using a for-each loop 26 | 4.using a while loop 27 | 5.using the ListIterator class 28 | 6.using the forEach() method */ 29 | 30 | 31 | 32 | // 3.using a for-each loop 33 | 34 | // here we use wrapper class because 35 | // collection are only store objects 36 | // and wrapper class is the representation 37 | // of primitives data type like int , char and so on 38 | 39 | // when we add primitive data type 40 | // in collections they automatically 41 | // converted into their respective Wrapper class 42 | // and this process is called AUTO BOXING 43 | 44 | // and we access or use the element 45 | // that are converted into their 46 | // respective Wrapper class they 47 | // automatically converted into 48 | // their original data type that is 49 | // primitive data type and this process 50 | // is called AUTO UNBOXING 51 | 52 | 53 | 54 | for(Integer el : arr) { 55 | System.out.println(el); 56 | } 57 | 58 | 59 | 60 | List names = new ArrayList<>(); 61 | 62 | names.add("Shubham"); 63 | names.add("Dev"); 64 | names.add("Boby"); 65 | names.add("Guarav"); 66 | names.add("Aman"); 67 | names.add("Chinmay"); 68 | names.add("Parth"); 69 | names.add("Atul"); 70 | names.add("Brijesh"); 71 | names.add("Akash"); 72 | 73 | 74 | for(String el : names) { 75 | 76 | StringBuffer s = new StringBuffer(el); 77 | 78 | System.out.println(s+" name Size is "+s.length()+" reverse -> "+s.reverse()); 79 | 80 | 81 | } 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | } 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | } 109 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/42/d080aecdf494001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | 2 | public class b { 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/44/30f34c5e7194001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.*; 4 | 5 | public class Vector { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List myvec = new java.util.Vector<>(); 12 | 13 | 14 | myvec.add(1); 15 | myvec.add(2); 16 | myvec.add(6); 17 | myvec.add(10); 18 | myvec.add(21); 19 | myvec.add(65); 20 | myvec.add(11); 21 | myvec.add(12); 22 | myvec.add(76); 23 | 24 | System.out.println(myvec); 25 | 26 | 27 | /* 28 | POINTS TO BE REMEMBER ABOUT VECTOR 29 | 30 | 1.vector is very old class of java it is old than collection 31 | basically java release with their first version that is 32 | JAVA VERSION 1.0 at this time collection was not part of 33 | java but VECTOR is but after 1.0 they introduce 34 | JAVA VERSION 1.2 which have collection also at that time 35 | they added vector in collection 36 | 37 | 2.order of insertion is maintain 38 | 3.look like arrayList but thread safe 39 | 4.special type of traversing method we can say that tool that is ENUMERATION 40 | 5.size is DYNAMIC 41 | 6.we can access value and elements by using indexes 42 | 43 | 44 | 45 | */ 46 | 47 | 48 | System.out.println(myvec.get(0)); 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | } 62 | 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/44/70d189c50e94001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/44/70d189c50e94001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/44/80b1e2131c95001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/44/80b1e2131c95001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/45/20c1c1caf494001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | 2 | public class Queue_Interface { 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/46/403fb88f7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | 5 | public class Stack { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | List mystack = new Stack(); 11 | } 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/49/707b3e3d0a95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Queue; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | Queue list1 = new LinkedList<>(); 12 | 13 | list1.add(1); 14 | list1.add(null); 15 | list1.add(67); 16 | list1.add(67); 17 | 18 | 19 | } 20 | 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/4a/b09ebda00595001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | 25 | 26 | // p1.add(1.234); 27 | // p1.add(true); 28 | 29 | // System.out.println(p1); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 34 | 35 | 1.allow duplicate elements 36 | 2.order of insertion is not maintain 37 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 38 | 39 | 40 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 41 | OFFER METHOD : if the element added successfully so they return true else return false 42 | 43 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 44 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 45 | 46 | 47 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 48 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | */ 57 | 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/4c/80365a5f0b95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Queue; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | Queue list1 = new LinkedList<>(); 12 | 13 | list1.add(1); 14 | list1.add(null); 15 | list1.add(67); 16 | list1.add(67); 17 | list1.add(90); 18 | list1.add(50); 19 | list1.add(20); 20 | list1.add(-1); 21 | list1.add(60); 22 | System.out.println(list1); 23 | 24 | Queue li3 = new LinkedList(); 25 | 26 | li3.add("Shubham"); 27 | li3.add(2); 28 | System.out.println(li3); 29 | } 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/5/0082b6550695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(); 25 | 26 | p1.offer(3.3); 27 | // p1.add(1.234); 28 | // p1.add(true); 29 | 30 | // System.out.println(p1); 31 | 32 | 33 | /* 34 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 35 | 36 | 1.allow duplicate elements 37 | 2.order of insertion is not maintain 38 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 39 | 40 | 41 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 42 | OFFER METHOD : if the element added successfully so they return true else return false 43 | 44 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 45 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 46 | 47 | 48 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 49 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | */ 58 | 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/50/f0f5da630695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | p1.clear(); 25 | System.out.println(p1.element()); 26 | 27 | // p1.add(1.234); 28 | // p1.add(true); 29 | 30 | // System.out.println(p1); 31 | 32 | 33 | /* 34 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 35 | 36 | 1.allow duplicate elements 37 | 2.order of insertion is not maintain 38 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 39 | 40 | 41 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 42 | OFFER METHOD : if the element added successfully so they return true else return false 43 | 44 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 45 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 46 | 47 | 48 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 49 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | */ 58 | 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/51/60016a491195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.ArrayDeque; 4 | import java.util.Iterator; 5 | 6 | public class Array_Deque { 7 | 8 | public static void main(String[] args) { 9 | 10 | ArrayDeque aq1 = new ArrayDeque<>(); 11 | 12 | aq1.add(23); 13 | aq1.add(56); 14 | aq1.offerFirst(1); 15 | aq1.offer(4); 16 | aq1.offer(56); 17 | //aq1.add(null); 18 | aq1.offer(56); 19 | 20 | 21 | System.out.println(aq1); 22 | 23 | 24 | 25 | 26 | 27 | } 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/51/c0415fd01c95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Map_Interface; 2 | 3 | public class Introduction { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/52/707f747f1095001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.ArrayDeque; 4 | 5 | public class Array_Deque { 6 | 7 | public static void main(String[] args) { 8 | 9 | ArrayDeque aq1 = new ArrayDeque<>(); 10 | 11 | aq1.add(23); 12 | aq1.add(56); 13 | aq1.offerFirst(1); 14 | aq1.offer(4); 15 | aq1.offer(56); 16 | aq1.add(null); 17 | 18 | 19 | System.out.println(aq1); 20 | 21 | 22 | 23 | } 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/52/902d47b40e94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/54/300bd80e6994001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | 23 | 24 | 25 | System.out.println(mylist); 26 | 27 | System.out.println(mylist.get(0)); 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | } 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/54/e0300d426294001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class Array_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | List arr = new ArrayList<>(); 11 | 12 | int num = 1; 13 | while(num < 11) { 14 | arr.add(num); 15 | num++; 16 | } 17 | 18 | System.out.println(arr); 19 | 20 | 21 | 22 | 23 | } 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/57/f04d60ff0595001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1.offer(3.3)); 25 | 26 | 27 | // p1.add(1.234); 28 | // p1.add(true); 29 | 30 | // System.out.println(p1); 31 | 32 | 33 | /* 34 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 35 | 36 | 1.allow duplicate elements 37 | 2.order of insertion is not maintain 38 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 39 | 40 | 41 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 42 | OFFER METHOD : if the element added successfully so they return true else return false 43 | 44 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 45 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 46 | 47 | 48 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 49 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | */ 58 | 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/5b/00c84ada4d94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/5d/a0bf7a0c7c94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/5d/a0bf7a0c7c94001d11ffe60941c1b04e -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/5d/b0abab087b94001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/5d/b0abab087b94001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/5f/300aef9b0695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | p1.clear(); 29 | System.out.println(p1.remove()); 30 | 31 | 32 | 33 | 34 | // System.out.println(p1); 35 | 36 | 37 | /* 38 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 39 | 40 | 1.allow duplicate elements 41 | 2.order of insertion is not maintain 42 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 43 | 44 | 45 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 46 | OFFER METHOD : if the element added successfully so they return true else return false 47 | 48 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 49 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 50 | 51 | 52 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 53 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | */ 62 | 63 | } 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/6/00c0982a5894001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.lang.reflect.Method; 4 | /* here we import java.util package because 5 | all the classes that we 6 | are going to are in this package */ 7 | import java.util.*; 8 | 9 | import javax.lang.model.util.Elements; 10 | 11 | public class Main { 12 | 13 | 14 | public static void main(String[] args) { 15 | 16 | 17 | /* 18 | we can create collection by two ways method (procedure) 19 | 20 | 1. TYPE SAFE : same type of elements (objects) are 21 | added to the collection. only one type of 22 | objects we can store in type safe collections' 23 | FOR EXAMPLE : if we store INTEGER type of 24 | objects so here we only store that kind 25 | of objects whose type is integer. 26 | 27 | 28 | 29 | 2. UN TYPE SAFE (NON-TYPE SAFE) : different types of elements we can 30 | store in un_type safe collection. 31 | 32 | 33 | */ 34 | 35 | 36 | 37 | // TYPE_SAFE_COLLECTION :- 38 | 39 | // <> (Diamond Operator) 40 | 41 | ArrayList name = new ArrayList<>(); 42 | 43 | // ADD is Method in which we can add (insert) data in ArrayList 44 | name.add("Shubham"); 45 | name.add("Rohan"); 46 | name.add("Varun"); 47 | name.add("Dev"); 48 | // name.add(7); WRONG 49 | //LINE NUMBER 48 ERROR MESSAGE ->The method add(int, String) in the type 50 | // ArrayList is not applicable for the arguments (int) 51 | 52 | System.out.println(name); 53 | // OUTPUT : [Shubham, Rohan, Varun, Dev] 54 | 55 | // DUPLICATE ELEMENTS ARE ALLOWED 56 | name.add("Dev"); 57 | name.add("Shubham"); 58 | name.add("Jayant"); 59 | 60 | // after inserting duplicate 61 | // OUTPUT : [Shubham, Rohan, Varun, Dev, Dev, Shubham, Jayant] 62 | 63 | 64 | // INDEX BASE IMPLEMENTATION OR COLLECTION (WE CAN ACCESS THE ELEMENT BY INDEX) 65 | String n = name.get(0); 66 | // System.err.println(n); 67 | 68 | // remove element by index 69 | name.remove(0); 70 | 71 | // remove element by object name itself 72 | name.remove("Dev"); 73 | 74 | // to know the size of the arraylist 75 | int size = name.size(); 76 | 77 | System.out.println(name); 78 | 79 | 80 | 81 | 82 | // if WeakHashMap storeHashMap different type Elements 83 | // inElements type Safe collection so they throw 84 | // COMPILE TIME ERROR 85 | 86 | // UN_TYPE_SAFE_COLLECTION :- 87 | 88 | LinkedList list = new LinkedList<>(); 89 | 90 | // here we add multiple type of data which have different-different 91 | // data types 92 | Scanner sc = new Scanner(System.in); 93 | list.add(1); 94 | list.add("Subham"); 95 | list.add(true); 96 | list.add(4.56); 97 | 98 | // if we store long value in arraylist so we 99 | // have to append L or l in the last of the number 100 | list.add(6232133187l); 101 | list.add("hello"); 102 | list.add('g'); 103 | list.add(3.53233434); 104 | // list.add(sc); 105 | list.add(false); 106 | 107 | // LinkedList is also allowed duplicate elements 108 | list.add('g'); 109 | list.add("hello"); 110 | 111 | 112 | list.remove(0); 113 | list.remove("Shubham"); 114 | list.remove(true); 115 | 116 | // here same as arraylist we can access the 117 | // element in linkedlist 118 | // with the help of index 119 | System.out.println(list.get(3)); 120 | 121 | 122 | System.out.println(list); 123 | // OUTPUT : [1, Subham, true, 4.56, 6232133187, hello, g, 3.53233434, false, g, hello] 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | } 139 | 140 | 141 | 142 | } 143 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/62/806b3d810395001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(53); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(10); 20 | 21 | // p1.add(1.234); 22 | // p1.add(true); 23 | 24 | System.out.println(p1); 25 | 26 | 27 | 28 | } 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/64/60069fdded94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.TreeSet; 4 | 5 | public class Tree_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | TreeSet tree1 = new TreeSet<>(); 12 | 13 | tree1.add(1); 14 | tree1.add(0); 15 | tree1.add(90); 16 | tree1.add(3); 17 | tree1.add(2); 18 | tree1.add(10); 19 | tree1.add(5); 20 | tree1.add(6); 21 | tree1.add(-1); 22 | 23 | System.out.println(tree1); 24 | 25 | 26 | /* 27 | 28 | POINTS TO BE REMEMBER ABOUT TREESET 29 | 30 | 1.store only unique elements 31 | 2.order of insertion is not maintain because they store the element in ascending order 32 | 3.store the elements in ascending order (lower to higher) 33 | 4.we can give customer sorting or custom insertion process also 34 | 5.we can not access elements by using index 35 | 6.size is DYNAMIC 36 | 7.if we want to access elements of hashSet so first we have to converted into arrayList 37 | 8.we can traverse both type safe or unType safe of collections 38 | 9.it is a child of SORTEDSET interface 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | */ 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | } 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/68/7053f7737094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.*; 4 | 5 | public class Vector { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List myvec = new java.util.Vector<>(); 12 | 13 | 14 | myvec.add(1); 15 | myvec.add(2); 16 | myvec.add(6); 17 | myvec.add(10); 18 | myvec.add(21); 19 | myvec.add(65); 20 | myvec.add(11); 21 | myvec.add(12); 22 | myvec.add(76); 23 | 24 | System.out.println(myvec); 25 | 26 | 27 | /* 28 | POINTS TO BE REMEMBER ABOUT VECTOR 29 | 30 | 1.vector is very old class of java it is old than collection 31 | basically java release with their first version that is 32 | JAVA VERSION 1.0 at this time collection was not part of 33 | java but VECTOR is but after 1.0 they introduce 34 | JAVA VERSION 1.2 which have collection also at that time 35 | they added vector in collection 36 | 37 | 38 | 39 | 40 | 41 | */ 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | } 57 | 58 | 59 | 60 | 61 | 62 | 63 | } 64 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/6c/80d5ec3b0795001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | // p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 45 | 46 | 47 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 48 | OFFER METHOD : if the element added successfully so they return true else return false 49 | 50 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 51 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 52 | 53 | 54 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 55 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | */ 64 | 65 | } 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/6d/70f6f9220795001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 45 | 46 | 47 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 48 | OFFER METHOD : if the element added successfully so they return true else return false 49 | 50 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 51 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 52 | 53 | 54 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 55 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | */ 64 | 65 | } 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/70/10ab2705e994001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | import java.util.LinkedList; 6 | import java.util.List; 7 | import java.util.ListIterator; 8 | 9 | public class Hash_Set { 10 | 11 | 12 | 13 | public static void main(String[] args) { 14 | 15 | 16 | 17 | HashSet myset = new HashSet<>(); 18 | 19 | myset.add(11); 20 | myset.add(3); 21 | myset.add(40); 22 | myset.add(2); 23 | myset.add(7); 24 | myset.add(5); 25 | myset.add(9); 26 | myset.add(10); 27 | myset.add(76); 28 | 29 | 30 | System.out.println(myset); 31 | 32 | 33 | /* 34 | POINTS TO BE REMEMBER ABOUT HASHSET 35 | 36 | 1.store only unique elements 37 | 2.order of insertion is not maintain 38 | 3.size is DYNAMIC 39 | 4.store the elements in random order 40 | 5.we can not access the elements by index (not index-basing collection) 41 | 6.if we want to access elements of hashSet so first we have to converted into arrayList 42 | 43 | 44 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN LINKEDLIST 45 | 1.using a for-each loop 46 | 2.using an iterator 47 | 3.using the forEach() method */ 48 | 49 | 50 | System.out.println("----------------------For-Each Loop----------------------"); 51 | 52 | /* 1.using a for-each loop 53 | 54 | here we use wrapper class because 55 | collection are only store objects 56 | and wrapper class is the representation 57 | of primitives data type like int , char and so on 58 | 59 | when we add primitive data type 60 | in collections they automatically 61 | converted into their respective Wrapper class 62 | and this process is called AUTO BOXING 63 | 64 | and we access or use the element 65 | that are converted into their 66 | respective Wrapper class they 67 | automatically converted into 68 | their original data type that is 69 | primitive data type and this process 70 | is called AUTO UNBOXING */ 71 | 72 | 73 | for(Integer el : myset) { 74 | System.out.println(el); 75 | } 76 | 77 | 78 | 79 | 80 | System.out.println("----------------------Iterator----------------------"); 81 | 82 | /* 2.using an iterator 83 | 84 | for traversing through iterator first 85 | we have gain the object of iterator 86 | from collection interface 87 | and after store into any variable 88 | we can only traversing in forward direction (left to right) */ 89 | 90 | Iterator itr1 = myset.iterator(); 91 | 92 | 93 | //here hasNext is method which check that the element is null 94 | //or present 95 | 96 | while(itr1.hasNext()) { 97 | System.out.println(itr1.next()); 98 | } 99 | 100 | 101 | 102 | 103 | System.out.println("----------------------For-Each Method----------------------"); 104 | 105 | /* 3.using the forEach() method (JAVA 8 FEATURE) 106 | 107 | here we use lambda Expression for traversing 108 | we can give any name for e */ 109 | 110 | myset.forEach(e->{ 111 | System.out.println(e); 112 | }); 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | } 128 | 129 | 130 | 131 | } 132 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/78/e0cb7ada0195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(1.234); 16 | p1.add(true); 17 | 18 | System.out.println(p1); 19 | 20 | 21 | 22 | } 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/7a/90c52d05e994001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.LinkedHashSet; 4 | 5 | public class Linked_Hash_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | LinkedHashSet link1 = new LinkedHashSet<>(); 12 | 13 | 14 | link1.add(1); 15 | link1.add(6); 16 | link1.add(90); 17 | link1.add(2); 18 | link1.add(5); 19 | link1.add(0); 20 | link1.add(70); 21 | link1.add(7); 22 | link1.add(9); 23 | link1.add(14); 24 | link1.add(61); 25 | link1.add(3); 26 | 27 | 28 | System.out.println(link1); 29 | 30 | 31 | 32 | 33 | 34 | 35 | } 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/7e/109304626894001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Linked_List { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/7f/b05a311d7d94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | 5 | public class Hash_Set { 6 | 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | 13 | HashSet myset = new HashSet<>(); 14 | 15 | myset.add(11); 16 | myset.add(3); 17 | myset.add(40); 18 | myset.add(2); 19 | myset.add(7); 20 | myset.add(5); 21 | myset.add(9); 22 | myset.add(10); 23 | 24 | 25 | System.out.println(myset); 26 | 27 | 28 | 29 | 30 | 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/81/809264476394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | public static void main(String[] args) { 10 | 11 | List arr = new ArrayList<>(); 12 | 13 | // ADDING ELEMENT IN ARRAYLIST 14 | int num = 1; 15 | while(num < 11) { 16 | arr.add(num); 17 | num++; 18 | } 19 | 20 | System.out.println(arr); 21 | 22 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 23 | 1.using an iterator 24 | 2.using a for loop 25 | 3.using a for-each loop 26 | 4.using a while loop 27 | 5.using the ListIterator class 28 | 6.using the forEach() method */ 29 | 30 | 31 | 32 | // 3.using a for-each loop 33 | 34 | // here we use wrapper class because 35 | // collection are only store objects 36 | // and wrapper class is the representation 37 | // of primitives data type like int , char and so on 38 | 39 | // when we add primitive data type 40 | // in collections they automatically 41 | // converted into their respective Wrapper class 42 | // and this process is called AUTO BOXING 43 | 44 | // and we access or use the element 45 | // that are converted into their 46 | // respective Wrapper class they 47 | // automatically converted into 48 | // their original data type that is 49 | // primitive data type and this process 50 | // is called AUTO UNBOXING 51 | 52 | 53 | 54 | for(Integer el : arr) { 55 | System.out.println(el); 56 | } 57 | 58 | 59 | 60 | List names = new ArrayList<>(); 61 | 62 | names.add("Shubham"); 63 | names.add("Dev"); 64 | names.add("Boby"); 65 | names.add("Guarav"); 66 | names.add("Aman"); 67 | names.add("Chinmay"); 68 | names.add("Parth"); 69 | names.add("Atul"); 70 | names.add("Brijesh"); 71 | names.add("Akash"); 72 | 73 | 74 | for(String el : names) { 75 | 76 | StringBuffer s = new StringBuffer(el); 77 | 78 | System.out.println(s+" name Size is "+s.length()+" reverse -> "+s.reverse()); 79 | 80 | 81 | } 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | } 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | } 109 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/82/5054d1cc0195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | public class Introduction { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/82/e02a87007b94001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/82/e02a87007b94001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/85/90b496c37d94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | 6 | public class Hash_Set { 7 | 8 | 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | 14 | HashSet myset = new HashSet<>(); 15 | 16 | myset.add(11); 17 | myset.add(3); 18 | myset.add(40); 19 | myset.add(2); 20 | myset.add(7); 21 | myset.add(5); 22 | myset.add(9); 23 | myset.add(10); 24 | myset.add(76); 25 | 26 | 27 | System.out.println(myset); 28 | 29 | 30 | /* 31 | POINTS TO BE REMEMBER ABOUT HASHSET 32 | 33 | 1.store only unique elements 34 | 2.order of insertion is not maintain 35 | 3.size is DYNAMIC 36 | 4.store the elements in random order 37 | 5.we can not access the elements by index (not index-basing collection) 38 | 39 | 40 | 41 | 42 | 43 | 44 | */ 45 | 46 | for(Integer el : myset) { 47 | System.out.println(el); 48 | } 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | } 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | } 66 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/88/70d99a0f7e94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | 6 | public class Hash_Set { 7 | 8 | 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | 14 | HashSet myset = new HashSet<>(); 15 | 16 | myset.add(11); 17 | myset.add(3); 18 | myset.add(40); 19 | myset.add(2); 20 | myset.add(7); 21 | myset.add(5); 22 | myset.add(9); 23 | myset.add(10); 24 | myset.add(76); 25 | 26 | 27 | System.out.println(myset); 28 | 29 | 30 | /* 31 | POINTS TO BE REMEMBER ABOUT HASHSET 32 | 33 | 1.store only unique elements 34 | 2.order of insertion is not maintain 35 | 3.size is DYNAMIC 36 | 4.store the elements in random order 37 | 5.we can not access the elements by index (not index-basing collection) 38 | 39 | 40 | 41 | 42 | 43 | 44 | */ 45 | 46 | for(Integer el : myset) { 47 | System.out.println(el); 48 | } 49 | 50 | 51 | Iterator itr1 = myset.iterator(); 52 | 53 | while(itr1.hasNext()) { 54 | System.out.println(itr1.next()); 55 | } 56 | 57 | 58 | 59 | myset.forEach(e->{ 60 | System.out.println(e); 61 | }); 62 | 63 | 64 | 65 | 66 | 67 | 68 | } 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | } 77 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/8a/3040909e7d94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | 5 | public class Hash_Set { 6 | 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | 13 | HashSet myset = new HashSet<>(); 14 | 15 | myset.add(11); 16 | myset.add(3); 17 | myset.add(40); 18 | myset.add(2); 19 | myset.add(7); 20 | myset.add(5); 21 | myset.add(9); 22 | myset.add(10); 23 | myset.add(76); 24 | 25 | 26 | System.out.println(myset); 27 | 28 | 29 | 30 | 31 | 32 | 33 | } 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/8b/1016b2fd7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | import java.util.Stack; 5 | 6 | public class StacK { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | 12 | Stack mystack = new Stack<>(); 13 | 14 | 15 | mystack.push(null) 16 | 17 | 18 | 19 | 20 | 21 | } 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/8c/10e53da60695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | // p1.clear(); 29 | System.out.println(p1.remove()); 30 | 31 | 32 | 33 | 34 | // System.out.println(p1); 35 | 36 | 37 | /* 38 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 39 | 40 | 1.allow duplicate elements 41 | 2.order of insertion is not maintain 42 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 43 | 44 | 45 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 46 | OFFER METHOD : if the element added successfully so they return true else return false 47 | 48 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 49 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 50 | 51 | 52 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 53 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | */ 62 | 63 | } 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | } 74 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/92/9061db980695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | // p1.add(1.234); 29 | // p1.add(true); 30 | 31 | // System.out.println(p1); 32 | 33 | 34 | /* 35 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 36 | 37 | 1.allow duplicate elements 38 | 2.order of insertion is not maintain 39 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 40 | 41 | 42 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 43 | OFFER METHOD : if the element added successfully so they return true else return false 44 | 45 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 46 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 47 | 48 | 49 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 50 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | */ 59 | 60 | } 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/94/e0fa7cd46d94001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/94/e0fa7cd46d94001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/95/00583bfbe794001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | public class Linked_Hash_Set { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/97/d0188cfe6794001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/97/d0188cfe6794001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/98/70ba5c0cf794001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/98/70ba5c0cf794001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/99/806dbc9d1194001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/99/806dbc9d1194001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/99/d09104296094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class ArrayList { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/a0/00ebb52d0795001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | // p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 45 | 46 | 47 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 48 | OFFER METHOD : if the element added successfully so they return true else return false 49 | 50 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 51 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 52 | 53 | 54 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 55 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | */ 64 | 65 | } 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/a1/604d7c797494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | import java.util.Stack; 5 | 6 | public class StacK { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | 12 | Stack mystack = new Stack<>(); 13 | 14 | 15 | mystack.push(null); 16 | mystack.push(2); 17 | mystack.push(6); 18 | mystack.push(10); 19 | mystack.push(3); 20 | mystack.push(7); 21 | mystack.push(90); 22 | mystack.push(2); 23 | mystack.push(6); 24 | mystack.push(0); 25 | mystack.push(5); 26 | mystack.push(1); 27 | 28 | System.out.println(mystack); 29 | 30 | 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/a4/50a9d9980595001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | 23 | // p1.add(1.234); 24 | // p1.add(true); 25 | 26 | System.out.println(p1); 27 | 28 | 29 | 30 | } 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/a5/90c0bb0d7b94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class VecTor { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/a9/d0501eed6894001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/ac/1076371eeb94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.Iterator; 4 | import java.util.LinkedHashSet; 5 | import java.util.ListIterator; 6 | 7 | public class Linked_Hash_Set { 8 | 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | LinkedHashSet link1 = new LinkedHashSet<>(); 14 | 15 | 16 | link1.add(1); 17 | link1.add(6); 18 | link1.add(90); 19 | link1.add(2); 20 | link1.add(5); 21 | link1.add(0); 22 | link1.add(70); 23 | link1.add(7); 24 | link1.add(9); 25 | link1.add(14); 26 | link1.add(61); 27 | link1.add(3); 28 | 29 | System.out.println(link1); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT LINKEDHASHSET 34 | 35 | 1.store only unique elements 36 | 2.order of insertion is maintain 37 | 3.size is DYNAMIC 38 | 4.we can not access the elements by index (not index-basing collection) 39 | 5.if we want to access elements of hashSet so first we have to converted into arrayList 40 | 6.we can traverse both type safe or unType safe of collections 41 | 42 | 43 | 44 | 45 | 46 | 47 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN LINKEDLIST 48 | 49 | 1.using a for-each loop (ONLY SUPPORTED TYPE SAFE COLECTION) 50 | 2.using an iterator 51 | 3.using the forEach() method */ 52 | 53 | 54 | System.out.println("----------------------For-Each Loop----------------------"); 55 | 56 | /* 1.using a for-each loop 57 | 58 | here we use wrapper class because 59 | collection are only store objects 60 | and wrapper class is the representation 61 | of primitives data type like int , char and so on 62 | 63 | when we add primitive data type 64 | in collections they automatically 65 | converted into their respective Wrapper class 66 | and this process is called AUTO BOXING 67 | 68 | and we access or use the element 69 | that are converted into their 70 | respective Wrapper class they 71 | automatically converted into 72 | their original data type that is 73 | primitive data type and this process 74 | is called AUTO UNBOXING */ 75 | 76 | for(Integer el : link1) { 77 | System.out.println(el); 78 | } 79 | 80 | 81 | 82 | System.out.println("----------------------Iterator----------------------"); 83 | 84 | /* 2.using an iterator 85 | 86 | for traversing through iterator first 87 | we have gain the object of iterator 88 | from collection interface 89 | and after store into any variable 90 | we can only traversing in forward direction (left to right) */ 91 | 92 | Iterator itr1 = link1.iterator(); 93 | 94 | 95 | //here hasNext is method which check that the element is null 96 | //or present 97 | 98 | 99 | while(itr1.hasNext()) { 100 | System.out.println(itr1.next()); 101 | } 102 | 103 | 104 | 105 | 106 | 107 | 108 | System.out.println("----------------------For-Each Method----------------------"); 109 | 110 | /* 3.using the forEach() method (JAVA 8 FEATURE) 111 | 112 | here we use lambda Expression for traversing 113 | we can give any name for e */ 114 | 115 | 116 | link1.forEach(el->{ 117 | System.out.println(el); 118 | }); 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | } 128 | 129 | 130 | } 131 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/b0/a0d77b926994001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | 23 | 24 | 25 | System.out.println(mylist); 26 | 27 | System.out.println(mylist.get(4)); 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | } 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/b4/60e5e9cc0195001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | public class Priority_Queue { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/bb/000421180795001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); //return not remove 26 | System.out.println(p1.peek()); //return not remove 27 | 28 | // p1.clear(); 29 | System.out.println(p1.remove()); //return and remove 30 | System.out.println(p1.poll()); //return and remove 31 | 32 | 33 | 34 | 35 | System.out.println(p1); 36 | 37 | 38 | /* 39 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 40 | 41 | 1.allow duplicate elements 42 | 2.order of insertion is not maintain 43 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 44 | 45 | 46 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 47 | OFFER METHOD : if the element added successfully so they return true else return false 48 | 49 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 50 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 51 | 52 | 53 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 54 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | */ 63 | 64 | } 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | } 75 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/bb/c0f9c4e76f94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.*; 4 | 5 | public class Vector { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List myvec = new java.util.Vector<>(); 12 | 13 | 14 | myvec.add(1); 15 | myvec.add(2); 16 | myvec.add(6); 17 | myvec.add(10); 18 | myvec.add(21); 19 | myvec.add(65); 20 | myvec.add(11); 21 | myvec.add(12); 22 | myvec.add(76); 23 | 24 | System.out.println(myvec); 25 | 26 | 27 | 28 | 29 | 30 | } 31 | 32 | 33 | 34 | 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/bd/d02f05750695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | // p1.add(1.234); 29 | // p1.add(true); 30 | 31 | // System.out.println(p1); 32 | 33 | 34 | /* 35 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 36 | 37 | 1.allow duplicate elements 38 | 2.order of insertion is not maintain 39 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 40 | 41 | 42 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 43 | OFFER METHOD : if the element added successfully so they return true else return false 44 | 45 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 46 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 47 | 48 | 49 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 50 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | */ 59 | 60 | } 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/bf/b053d4747594001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | import java.util.Stack; 5 | 6 | public class StacK { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | 12 | Stack mystack = new Stack<>(); 13 | 14 | 15 | mystack.push(null); 16 | mystack.push(2); 17 | mystack.push(6); 18 | mystack.push(10); 19 | mystack.push(3); 20 | mystack.push(7); 21 | mystack.push(90); 22 | mystack.push(2); 23 | mystack.push(null); 24 | mystack.push(0); 25 | mystack.push(5); 26 | mystack.push(1); 27 | 28 | System.out.println(mystack); 29 | 30 | 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/c3/20a0f218ec94001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/c3/20a0f218ec94001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/c4/c00146c74d94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | 2 | public class What_Is_Framework { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/c8/b006addc6894001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Linked_List { 4 | 5 | public static void main(String[] args) { 6 | 7 | 8 | list 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | } 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/c9/60aaf3540a95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Queue; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | Queue list1 = new LinkedList<>(); 12 | 13 | list1.add(1); 14 | list1.add(null); 15 | list1.add(67); 16 | list1.add(67); 17 | System.out.println(list1); 18 | 19 | } 20 | 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/cd/00f3a66a0395001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(5); 17 | p1.add(2); 18 | p1.add(6); 19 | 20 | p1.add(10); 21 | 22 | // p1.add(1.234); 23 | // p1.add(true); 24 | 25 | System.out.println(p1); 26 | 27 | 28 | 29 | } 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | } 40 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/cd/70fed9256394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | public static void main(String[] args) { 10 | 11 | List arr = new ArrayList<>(); 12 | 13 | // ADDING ELEMENT IN ARRAYLIST 14 | int num = 1; 15 | while(num < 11) { 16 | arr.add(num); 17 | num++; 18 | } 19 | 20 | System.out.println(arr); 21 | 22 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 23 | 1.using an iterator 24 | 2.using a for loop 25 | 3.using a for-each loop 26 | 4.using a while loop 27 | 5.using the ListIterator class 28 | 6.using the forEach() method */ 29 | 30 | 31 | 32 | // 3.using a for-each loop 33 | 34 | // here we use wrapper class because 35 | // collection are only store objects 36 | // and wrapper class is the representation 37 | // of primitives data type like int , char and so on 38 | 39 | // when we add primitive data type 40 | // in collections they automatically 41 | // converted into their respective Wrapper class 42 | // and this process is called AUTO BOXING 43 | 44 | // and we access or use the element 45 | // that are converted into their 46 | // respective Wrapper class they 47 | // automatically converted into 48 | // their original data type that is 49 | // primitive data type and this process 50 | // is called AUTO UNBOXING 51 | 52 | 53 | 54 | for(Integer el : arr) { 55 | System.out.println(el); 56 | } 57 | 58 | 59 | 60 | List names = new ArrayList<>(); 61 | 62 | names.add("Shubham"); 63 | names.add("Dev"); 64 | names.add("Boby"); 65 | names.add("Guarav"); 66 | names.add("Aman"); 67 | names.add("Chinmay"); 68 | names.add("Parth"); 69 | names.add("Atul"); 70 | names.add("Brijesh"); 71 | names.add("Akash"); 72 | 73 | 74 | for(String el : names) { 75 | 76 | StringBuffer s = new StringBuffer(el); 77 | 78 | System.out.println(s+" Size is "+s.length()+" reverse -> "+s.reverse()); 79 | 80 | 81 | } 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | } 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | } 109 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/cd/80b368630395001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(5); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(1); 20 | 21 | // p1.add(1.234); 22 | // p1.add(true); 23 | 24 | System.out.println(p1); 25 | 26 | 27 | 28 | } 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d/3016186e0995001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | public class Linked_List { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d/60ac2a8f0f95001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/d/60ac2a8f0f95001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d/60decd886e94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Vector { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d0/00c6c8caf494001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | 2 | public class Queue_Interface { 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d1/10e81fec7294001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/d1/10e81fec7294001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d3/a0cfe91d0995001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/d3/a0cfe91d0995001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d5/e0ab24bd1394001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/d5/e0ab24bd1394001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d7/e042bccaf494001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | 2 | public class Queue_Interface { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d8/e021f5b7f494001d143fbd7a60d00246: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/d8/e021f5b7f494001d143fbd7a60d00246 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d9/001d416ced94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.TreeSet; 4 | 5 | public class Tree_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | TreeSet tree1 = new TreeSet<>(); 12 | 13 | tree1.add(1); 14 | tree1.add(0); 15 | tree1.add(90); 16 | tree1.add(3); 17 | tree1.add(2); 18 | tree1.add(10); 19 | tree1.add(5); 20 | tree1.add(6); 21 | tree1.add(-1); 22 | 23 | System.out.println(tree1); 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | } 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/d9/e009c887ec94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | public class Tree_Set { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/da/10553d296094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class ArrayList { 7 | 8 | 9 | List arr = new Array_List<>(); 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/da/80fc03b1ea94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.LinkedHashSet; 4 | 5 | public class Linked_Hash_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | LinkedHashSet link1 = new LinkedHashSet<>(); 12 | 13 | 14 | link1.add(1); 15 | link1.add(6); 16 | link1.add(90); 17 | link1.add(2); 18 | link1.add(5); 19 | link1.add(0); 20 | link1.add(70); 21 | link1.add(7); 22 | link1.add(9); 23 | link1.add(14); 24 | link1.add(61); 25 | link1.add(3); 26 | 27 | 28 | 29 | 30 | System.out.println(link1); 31 | 32 | 33 | 34 | 35 | 36 | 37 | } 38 | 39 | 40 | } 41 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/db/d098a9d76494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | /** 10 | * @param args 11 | */ 12 | public static void main(String[] args) { 13 | 14 | List arr = new ArrayList<>(); 15 | 16 | // ADDING ELEMENT IN ARRAYLIST 17 | int num = 1; 18 | while(num < 11) { 19 | arr.add(num); 20 | num++; 21 | } 22 | 23 | System.out.println(arr); 24 | 25 | 26 | 27 | 28 | 29 | /* 30 | POINTS TO BE REMEMBER ABOUT ARRAYLIST :- 31 | 32 | 1.index basing storing 33 | 2.order of insertion is maintain 34 | 3.access element by their name , index 35 | 36 | 37 | 38 | 39 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 40 | 1.using an iterator 41 | 2.using a for loop 42 | 3.using a for-each loop 43 | 4.using a while loop 44 | 5.using the ListIterator class 45 | 6.using the forEach() method */ 46 | 47 | 48 | 49 | // 3.using a for-each loop 50 | 51 | // here we use wrapper class because 52 | // collection are only store objects 53 | // and wrapper class is the representation 54 | // of primitives data type like int , char and so on 55 | 56 | // when we add primitive data type 57 | // in collections they automatically 58 | // converted into their respective Wrapper class 59 | // and this process is called AUTO BOXING 60 | 61 | // and we access or use the element 62 | // that are converted into their 63 | // respective Wrapper class they 64 | // automatically converted into 65 | // their original data type that is 66 | // primitive data type and this process 67 | // is called AUTO UNBOXING 68 | 69 | 70 | 71 | for(Integer el : arr) { 72 | System.out.println(el); 73 | } 74 | 75 | 76 | 77 | List names = new ArrayList<>(); 78 | 79 | names.add("Shubham"); 80 | names.add("Dev"); 81 | names.add("Boby"); 82 | names.add("Guarav"); 83 | names.add("Aman"); 84 | names.add("Chinmay"); 85 | names.add("Parth"); 86 | names.add("Atul"); 87 | names.add("Brijesh"); 88 | names.add("Akash"); 89 | 90 | 91 | for(String el : names) { 92 | 93 | StringBuffer s = new StringBuffer(el); 94 | 95 | System.out.println(s+"\t"+" name Size is "+s.length()+" reverse -> "+s.reverse()); 96 | 97 | 98 | } 99 | 100 | 101 | 102 | // 1.using an iterator 103 | 104 | // for traversing through iterator first 105 | // we have gain the object of iterator 106 | // from collection interface 107 | // and after store into any variable 108 | 109 | Iterator it = names.iterator(); 110 | 111 | while(it.hasNext()) { 112 | String g = it.next(); 113 | System.out.println(g); 114 | } 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | } 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | } 141 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/dc/10810c296094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public class ArrayList { 7 | 8 | 9 | List arr = new ArrayList<>(); 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/dd/c0afbc696394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | /** 10 | * @param args 11 | */ 12 | public static void main(String[] args) { 13 | 14 | List arr = new ArrayList<>(); 15 | 16 | // ADDING ELEMENT IN ARRAYLIST 17 | int num = 1; 18 | while(num < 11) { 19 | arr.add(num); 20 | num++; 21 | } 22 | 23 | System.out.println(arr); 24 | 25 | /*THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 26 | 1.using an iterator 27 | 2.using a for loop 28 | 3.using a for-each loop 29 | 4.using a while loop 30 | 5.using the ListIterator class 31 | 6.using the forEach() method */ 32 | 33 | 34 | 35 | // 3.using a for-each loop 36 | 37 | // here we use wrapper class because 38 | // collection are only store objects 39 | // and wrapper class is the representation 40 | // of primitives data type like int , char and so on 41 | 42 | // when we add primitive data type 43 | // in collections they automatically 44 | // converted into their respective Wrapper class 45 | // and this process is called AUTO BOXING 46 | 47 | // and we access or use the element 48 | // that are converted into their 49 | // respective Wrapper class they 50 | // automatically converted into 51 | // their original data type that is 52 | // primitive data type and this process 53 | // is called AUTO UNBOXING 54 | 55 | 56 | 57 | for(Integer el : arr) { 58 | System.out.println(el); 59 | } 60 | 61 | 62 | 63 | List names = new ArrayList<>(); 64 | 65 | names.add("Shubham"); 66 | names.add("Dev"); 67 | names.add("Boby"); 68 | names.add("Guarav"); 69 | names.add("Aman"); 70 | names.add("Chinmay"); 71 | names.add("Parth"); 72 | names.add("Atul"); 73 | names.add("Brijesh"); 74 | names.add("Akash"); 75 | 76 | 77 | for(String el : names) { 78 | 79 | StringBuffer s = new StringBuffer(el); 80 | 81 | System.out.println(s+"\t"+"name Size is "+s.length()+" reverse -> "+s.reverse()); 82 | 83 | 84 | } 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | } 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | } 112 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/df/b0905693ec94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.TreeSet; 4 | 5 | public class Tree_Set { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | TreeSet tree1 = new TreeSet<>(); 12 | 13 | tree1.add(1); 14 | tree1.add(0); 15 | tree1.add(90); 16 | tree1.add(3); 17 | tree1.add(2); 18 | tree1.add(10); 19 | tree1.add(5); 20 | tree1.add(6); 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | } 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/e/30113a67df94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | import java.util.ListIterator; 6 | 7 | public class Hash_Set { 8 | 9 | 10 | 11 | public static void main(String[] args) { 12 | 13 | 14 | 15 | HashSet myset = new HashSet<>(); 16 | 17 | myset.add(11); 18 | myset.add(3); 19 | myset.add(40); 20 | myset.add(2); 21 | myset.add(7); 22 | myset.add(5); 23 | myset.add(9); 24 | myset.add(10); 25 | myset.add(76); 26 | 27 | 28 | System.out.println(myset); 29 | 30 | 31 | /* 32 | POINTS TO BE REMEMBER ABOUT HASHSET 33 | 34 | 1.store only unique elements 35 | 2.order of insertion is not maintain 36 | 3.size is DYNAMIC 37 | 4.store the elements in random order 38 | 5.we can not access the elements by index (not index-basing collection) 39 | 40 | 41 | 42 | 43 | 44 | 45 | */ 46 | 47 | for(Integer el : myset) { 48 | System.out.println(el); 49 | } 50 | 51 | 52 | Iterator itr1 = myset.iterator(); 53 | 54 | while(itr1.hasNext()) { 55 | System.out.println(itr1.next()); 56 | } 57 | 58 | 59 | 60 | myset.forEach(e->{ 61 | System.out.println(e); 62 | }); 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | } 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | } 82 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/e/407b6d14ee94001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.Iterator; 4 | import java.util.LinkedHashSet; 5 | import java.util.TreeSet; 6 | 7 | public class Tree_Set { 8 | 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | TreeSet tree1 = new TreeSet<>(); 14 | 15 | tree1.add(1); 16 | tree1.add(0); 17 | tree1.add(90); 18 | tree1.add(3); 19 | tree1.add(2); 20 | tree1.add(10); 21 | tree1.add(5); 22 | tree1.add(6); 23 | tree1.add(-1); 24 | 25 | System.out.println(tree1); 26 | 27 | 28 | /* 29 | 30 | POINTS TO BE REMEMBER ABOUT TREESET 31 | 32 | 1.store only unique elements 33 | 2.order of insertion is not maintain because they store the element in ascending order 34 | 3.store the elements in ascending order (lower to higher) 35 | 4.we can give customer sorting or custom insertion process also 36 | 5.we can not access elements by using index 37 | 6.size is DYNAMIC 38 | 7.if we want to access elements of hashSet so first we have to converted into arrayList 39 | 8.we can traverse both type safe or unType safe of collections 40 | 9.it is a child of SORTEDSET interface 41 | 42 | 43 | 44 | 45 | 46 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN LINKEDLIST 47 | 48 | 1.using a for-each loop (ONLY SUPPORTED TYPE SAFE COLECTION) 49 | 2.using an iterator 50 | 3.using the forEach() method */ 51 | 52 | 53 | System.out.println("----------------------For-Each Loop----------------------"); 54 | 55 | /* 1.using a for-each loop 56 | 57 | here we use wrapper class because 58 | collection are only store objects 59 | and wrapper class is the representation 60 | of primitives data type like int , char and so on 61 | 62 | when we add primitive data type 63 | in collections they automatically 64 | converted into their respective Wrapper class 65 | and this process is called AUTO BOXING 66 | 67 | and we access or use the element 68 | that are converted into their 69 | respective Wrapper class they 70 | automatically converted into 71 | their original data type that is 72 | primitive data type and this process 73 | is called AUTO UNBOXING */ 74 | 75 | 76 | 77 | 78 | System.out.println("----------------------Iterator----------------------"); 79 | 80 | /* 2.using an iterator 81 | 82 | for traversing through iterator first 83 | we have gain the object of iterator 84 | from collection interface 85 | and after store into any variable 86 | we can only traversing in forward direction (left to right) */ 87 | 88 | 89 | //here hasNext is method which check that the element is null 90 | //or present 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | System.out.println("----------------------For-Each Method----------------------"); 101 | 102 | /* 3.using the forEach() method (JAVA 8 FEATURE) 103 | 104 | here we use lambda Expression for traversing 105 | we can give any name for e */ 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | System.out.println("----------------------For-Each Method(UNTYPE SAFE)----------------------"); 114 | 115 | 116 | //we can also create NON-TYPE SAFE linkedHashSet 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | } 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | } 154 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/e1/d09983760395001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(1); 15 | p1.add(2); 16 | p1.add(5); 17 | p1.add(2); 18 | p1.add(6); 19 | p1.add(10); 20 | 21 | // p1.add(1.234); 22 | // p1.add(true); 23 | 24 | System.out.println(p1); 25 | 26 | 27 | 28 | } 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/e6/307878506a94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.LinkedList; 4 | import java.util.List; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | List mylist = new LinkedList<>(); 12 | 13 | 14 | mylist.add("Shubham"); 15 | mylist.add("Dev"); 16 | mylist.add("Boby"); 17 | mylist.add("Aman"); 18 | mylist.add("Chinmay"); 19 | mylist.add("Ayush"); 20 | mylist.add("Aatish"); 21 | mylist.add(null); 22 | mylist.add("Aatish"); 23 | mylist.add(null); 24 | 25 | 26 | 27 | System.out.println(mylist); 28 | 29 | System.out.println(mylist.get(4)); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT LINKEDLIST 34 | 35 | 1.order of insertion is maintain 36 | 2.store the element on doubly LinkedList data structure 37 | 3.null value is allowed 38 | 4.store duplicate element 39 | 40 | 41 | */ 42 | 43 | for(String el : mylist) { 44 | System.err.println(el); 45 | } 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | } 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/e9/501674dd5f94001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/e9/501674dd5f94001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/eb/301e7c61e194001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | import java.util.HashSet; 4 | import java.util.Iterator; 5 | import java.util.ListIterator; 6 | 7 | public class Hash_Set { 8 | 9 | 10 | 11 | public static void main(String[] args) { 12 | 13 | 14 | 15 | HashSet myset = new HashSet<>(); 16 | 17 | myset.add(11); 18 | myset.add(3); 19 | myset.add(40); 20 | myset.add(2); 21 | myset.add(7); 22 | myset.add(5); 23 | myset.add(9); 24 | myset.add(10); 25 | myset.add(76); 26 | 27 | 28 | System.out.println(myset); 29 | 30 | 31 | /* 32 | POINTS TO BE REMEMBER ABOUT HASHSET 33 | 34 | 1.store only unique elements 35 | 2.order of insertion is not maintain 36 | 3.size is DYNAMIC 37 | 4.store the elements in random order 38 | 5.we can not access the elements by index (not index-basing collection) 39 | 40 | 41 | 42 | 43 | 44 | 45 | */ 46 | 47 | // for(Integer el : myset) { 48 | // System.out.println(el); 49 | // } 50 | // 51 | // 52 | // Iterator itr1 = myset.iterator(); 53 | // 54 | // while(itr1.hasNext()) { 55 | // System.out.println(itr1.next()); 56 | // } 57 | // 58 | // 59 | // 60 | // myset.forEach(e->{ 61 | // System.out.println(e); 62 | // }); 63 | // 64 | // 65 | // 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | } 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | } 82 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/ec/10acbc8f7394001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | 5 | public class Stack { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | List mystack = new StacK(); 11 | } 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/ec/f05e44c84d94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | 2 | public class Collection_Hierarchy { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/ee/60252e7c1094001d185bace9afb86939: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.history/ee/60252e7c1094001d185bace9afb86939 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f0/90bcad700695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | p1.clear(); 25 | System.out.println(p1.peek()); 26 | 27 | // p1.add(1.234); 28 | // p1.add(true); 29 | 30 | // System.out.println(p1); 31 | 32 | 33 | /* 34 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 35 | 36 | 1.allow duplicate elements 37 | 2.order of insertion is not maintain 38 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 39 | 40 | 41 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 42 | OFFER METHOD : if the element added successfully so they return true else return false 43 | 44 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 45 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 46 | 47 | 48 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 49 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | */ 58 | 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | } 70 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f0/f00ad3e46494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | public class Array_List { 8 | 9 | /** 10 | * @param args 11 | */ 12 | public static void main(String[] args) { 13 | 14 | List arr = new ArrayList<>(); 15 | 16 | // ADDING ELEMENT IN ARRAYLIST 17 | int num = 1; 18 | while(num < 11) { 19 | arr.add(num); 20 | num++; 21 | } 22 | 23 | System.out.println(arr); 24 | 25 | 26 | 27 | 28 | 29 | /* 30 | POINTS TO BE REMEMBER ABOUT ARRAYLIST :- 31 | 32 | 1.index basing storing 33 | 2.order of insertion is maintain 34 | 3.access element by their name , index 35 | 36 | 37 | 38 | 39 | THERE ARE TOTAL SIX METHOD FOR TRAVERSING IN ARRAYLIST 40 | 1.using an iterator 41 | 2.using a for loop 42 | 3.using a for-each loop 43 | 4.using a while loop 44 | 5.using the ListIterator class 45 | 6.using the forEach() method */ 46 | 47 | 48 | 49 | // 3.using a for-each loop 50 | 51 | // here we use wrapper class because 52 | // collection are only store objects 53 | // and wrapper class is the representation 54 | // of primitives data type like int , char and so on 55 | 56 | // when we add primitive data type 57 | // in collections they automatically 58 | // converted into their respective Wrapper class 59 | // and this process is called AUTO BOXING 60 | 61 | // and we access or use the element 62 | // that are converted into their 63 | // respective Wrapper class they 64 | // automatically converted into 65 | // their original data type that is 66 | // primitive data type and this process 67 | // is called AUTO UNBOXING 68 | 69 | 70 | 71 | for(Integer el : arr) { 72 | System.out.println(el); 73 | } 74 | 75 | 76 | 77 | List names = new ArrayList<>(); 78 | 79 | names.add("Shubham"); 80 | names.add("Dev"); 81 | names.add("Boby"); 82 | names.add("Guarav"); 83 | names.add("Aman"); 84 | names.add("Chinmay"); 85 | names.add("Parth"); 86 | names.add("Atul"); 87 | names.add("Brijesh"); 88 | names.add("Akash"); 89 | names.add(null); 90 | 91 | 92 | for(String el : names) { 93 | 94 | StringBuffer s = new StringBuffer(el); 95 | 96 | System.out.println(s+"\t"+" name Size is "+s.length()+" reverse -> "+s.reverse()); 97 | 98 | 99 | } 100 | 101 | 102 | 103 | // 1.using an iterator 104 | 105 | // for traversing through iterator first 106 | // we have gain the object of iterator 107 | // from collection interface 108 | // and after store into any variable 109 | // we can only traversing in forward direction (left to right) 110 | 111 | Iterator it = names.iterator(); 112 | 113 | 114 | // here hasnext is method which check that the element is null 115 | // or present 116 | while(it.hasNext()) { 117 | String g = it.next(); 118 | System.out.println(g); 119 | } 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | } 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | } 146 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f5/701613821094001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | 2 | public class What_Is_Collection { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f6/5077f6c54d94001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | 2 | public class Collection_Framework_In_JAVA { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f6/709957380a95001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Queue; 5 | 6 | public class Linked_List { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | Queue list1 = new LinkedList<>(); 12 | 13 | list1.add(1); 14 | 15 | 16 | } 17 | 18 | 19 | 20 | } 21 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f7/0028c7a80695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | // p1.clear(); 25 | System.out.println(p1.element()); 26 | System.out.println(p1.peek()); 27 | 28 | p1.clear(); 29 | // System.out.println(p1.remove()); 30 | System.out.println(p1.poll()); 31 | 32 | 33 | 34 | 35 | // System.out.println(p1); 36 | 37 | 38 | /* 39 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 40 | 41 | 1.allow duplicate elements 42 | 2.order of insertion is not maintain 43 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 44 | 45 | 46 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 47 | OFFER METHOD : if the element added successfully so they return true else return false 48 | 49 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 50 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 51 | 52 | 53 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 54 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | */ 63 | 64 | } 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | } 75 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/f8/007bf7330795001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 45 | 46 | 47 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 48 | OFFER METHOD : if the element added successfully so they return true else return false 49 | 50 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 51 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 52 | 53 | 54 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 55 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | */ 64 | 65 | } 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/fa/e0f6195a7c94001d11ffe60941c1b04e: -------------------------------------------------------------------------------- 1 | package Set_Interface; 2 | 3 | public class Hash_Set { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/fc/10678b5e0695001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1.element()); 25 | 26 | // p1.add(1.234); 27 | // p1.add(true); 28 | 29 | // System.out.println(p1); 30 | 31 | 32 | /* 33 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 34 | 35 | 1.allow duplicate elements 36 | 2.order of insertion is not maintain 37 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 38 | 39 | 40 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 41 | OFFER METHOD : if the element added successfully so they return true else return false 42 | 43 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 44 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 45 | 46 | 47 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 48 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | */ 57 | 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/fe/e07938707494001d185bace9afb86939: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | import java.util.Stack; 5 | 6 | public class StacK { 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | 12 | Stack mystack = new Stack<>(); 13 | 14 | 15 | mystack.push(null); 16 | mystack.push(2); 17 | mystack.push(6); 18 | mystack.push(10); 19 | mystack.push(3); 20 | mystack.push(7); 21 | mystack.push(90); 22 | mystack.push(2); 23 | mystack.push(6); 24 | mystack.push(0); 25 | mystack.push(5); 26 | mystack.push(1); 27 | 28 | 29 | 30 | 31 | 32 | } 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.history/ff/f0a3920b0895001d143fbd7a60d00246: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | import java.util.PriorityQueue; 4 | 5 | public class Priority_Queue { 6 | 7 | 8 | public static void main(String[] args) { 9 | 10 | 11 | PriorityQueue p1 = new PriorityQueue<>(); 12 | 13 | // p1.add("Shubham"); 14 | p1.add(53); 15 | p1.add(1); 16 | p1.add(2); 17 | p1.add(53); 18 | p1.add(2); 19 | p1.add(6); 20 | p1.add(10); 21 | 22 | // System.out.println(p1.add(40.8)); 23 | System.out.println(p1.add(40)); 24 | System.out.println(p1); 25 | // p1.clear(); 26 | p1.element(); //return not remove 27 | p1.peek(); //return not remove 28 | 29 | // p1.clear(); 30 | p1.remove(); //return and remove 31 | p1.poll(); //return and remove 32 | 33 | 34 | 35 | 36 | System.out.println(p1); 37 | 38 | 39 | /* 40 | POINTS TO BE REMEMBER ABOUT PRIORITY QUEUE 41 | 42 | 1.allow duplicate elements 43 | 2.order of insertion is not maintain 44 | 3.AUTOSORTING it automatically sorted the queue in asc ending order 45 | 46 | 47 | ADD METHOD : if the element added successfully so they return true else throw EXCEPTION 48 | OFFER METHOD : if the element added successfully so they return true else return false 49 | 50 | ELEMENT METHOD : return the head(first element) of the queue. Throw an EXECPTION if the queue is empty 51 | PEEK METHOD : return the head (first element) of the queue. Return null if the queue is empty 52 | 53 | 54 | REMOVE METHOD : return and removes the head of the queue. Throw an EXECPTION if the queue is empty 55 | POLL NETHOD : return and removes the head of the queue. Return null if queue is empty 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | */ 64 | 65 | } 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.location: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.egit.core.cmp/.location -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/af/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/af/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/4b/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/4b/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/5c/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/5c/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/81/c7/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/81/c7/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d6/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d6/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/5d/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/5d/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/75/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/75/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/d8/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.indexes/e4/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/.markers -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Practical(IMPLEMENTATION)/org.eclipse.jdt.core/state.dat -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/.indexes/af/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/.indexes/af/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/.indexes/e4/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/.indexes/e4/history.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.projects/Theory/org.eclipse.jdt.core/state.dat -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index: -------------------------------------------------------------------------------- 1 | /org.eclipse.core.resourcescontentCacheState2contentCacheTimestamp 1670401703994org.eclipse.jdt.corestateVersionNumber38 -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.root/.markers -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.root/13.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.root/13.tree -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/Cloud Foundry.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | runTargets-v2= 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/Docker.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | runTargets-v2= 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding=UTF-8 3 | version=1 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\r\n\r\n 3 | org.eclipse.debug.ui.cancel_launch_with_compile_errors=always 4 | org.eclipse.debug.ui.save_dirty_editors_before_launch=always 5 | preferredTargets=default,org.eclipse.lsp4e.debug.toggleBreakpointTarget\:default|org.eclipse.lsp4e.debug.toggleBreakpointTarget\:org.eclipse.lsp4e.debug.toggleBreakpointTarget| 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.egit.core.prefs: -------------------------------------------------------------------------------- 1 | core_autoIgnoreDerivedResources=false 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=C\:/Program Files/sts/ 3 | org.eclipse.jdt.core.classpathVariable.JRE_LIB=C\:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/jrt-fs.jar 4 | org.eclipse.jdt.core.classpathVariable.JRE_SRC=C\:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/src.zip 5 | org.eclipse.jdt.core.classpathVariable.JRE_SRCROOT= 6 | org.eclipse.jdt.core.classpathVariable.JUNIT_HOME=C\:/Program Files/sts/plugins/org.junit_4.13.2.v20211018-1956.jar 7 | org.eclipse.jdt.core.classpathVariable.M2_REPO=C\:/Users/shubh/.m2/repository 8 | org.eclipse.jdt.core.codeComplete.argumentPrefixes= 9 | org.eclipse.jdt.core.codeComplete.argumentSuffixes= 10 | org.eclipse.jdt.core.codeComplete.fieldPrefixes= 11 | org.eclipse.jdt.core.codeComplete.fieldSuffixes= 12 | org.eclipse.jdt.core.codeComplete.localPrefixes= 13 | org.eclipse.jdt.core.codeComplete.localSuffixes= 14 | org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= 15 | org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= 16 | org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= 17 | org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= 18 | org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled 19 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 20 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 21 | org.eclipse.jdt.core.compiler.compliance=17 22 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 23 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 24 | org.eclipse.jdt.core.compiler.release=enabled 25 | org.eclipse.jdt.core.compiler.source=17 26 | org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled 27 | org.eclipse.jdt.core.compiler.taskPriorities=NORMAL,HIGH,NORMAL 28 | org.eclipse.jdt.core.compiler.taskTags=TODO,FIXME,XXX 29 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.debug.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.debug.ui.prompt_unable_to_install_breakpoint=false 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.junit.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.junit.active_filters=jdk.internal.reflect.*,org.eclipse.jdt.internal.junit.runner.*,org.eclipse.jdt.internal.junit.ui.*,org.eclipse.jdt.internal.junit4.runner.*,org.eclipse.jdt.internal.junit5.runner.*,org.junit.*,sun.reflect.*,java.lang.reflect.Method.invoke,junit.framework.Assert,junit.framework.TestCase,junit.framework.TestResult,junit.framework.TestResult$1,junit.framework.TestSuite 3 | org.eclipse.jdt.junit.enable_assertions=true 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.junit.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.junit.content_assist_favorite_static_members_migrated=true 3 | org.eclipse.jdt.junit.show_in_all_views=false 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.launching.PREF_DEFAULT_ENVIRONMENTS_XML= 3 | org.eclipse.jdt.launching.PREF_VM_XML=\r\n\r\n \r\n \r\n \r\n\r\n 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jsch.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jsch.core.hasChangedDefaultWin32SshHome=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.apt.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.m2e.apt.mode=jdt_apt 3 | org.springframework.ide.eclipse.boot.customised=true 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.m2e.discovery.pref.projects= 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.api.tools.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | knownEEFragments= 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | workspace_target_handle=local\:1673731575815.target 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs: -------------------------------------------------------------------------------- 1 | STS4BootMarkerIndicationColor=56,84,26 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | platformState=1670401703994 3 | quickStart=false 4 | tipsAndTricks=true 5 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs: -------------------------------------------------------------------------------- 1 | //org.eclipse.ui.commands/state/org.eclipse.ui.navigator.resources.nested.changeProjectPresentation/org.eclipse.ui.commands.radioState=false 2 | PLUGINS_NOT_ACTIVATED_ON_STARTUP=;org.eclipse.m2e.discovery; 3 | eclipse.preferences.version=1 4 | org.eclipse.ui.commands=\r\n 5 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_END=41,41,41 6 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_BG_START=43,44,45 7 | org.eclipse.ui.workbench.ACTIVE_NOFOCUS_TAB_TEXT_COLOR=204,204,204 8 | org.eclipse.ui.workbench.ACTIVE_TAB_BG_END=41,41,41 9 | org.eclipse.ui.workbench.ACTIVE_TAB_BG_START=43,44,45 10 | org.eclipse.ui.workbench.ACTIVE_TAB_TEXT_COLOR=221,221,221 11 | org.eclipse.ui.workbench.INACTIVE_TAB_BG_END=49,53,56 12 | org.eclipse.ui.workbench.INACTIVE_TAB_BG_START=59,64,66 13 | org.eclipse.ui.workbench.INACTIVE_TAB_TEXT_COLOR=187,187,187 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.urischeme.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | processedSchemes=,eclipse+command,eclipse+mpc 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.springframework.ide.eclipse.boot.dash.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | toggle-filters\:enableRegexFilter=false 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.springframework.ide.eclipse.boot.launch.prefs: -------------------------------------------------------------------------------- 1 | cglib.breakpoint.warning.disabled=true 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.springframework.ide.eclipse.imports.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.springframework.ide.eclipse.imports.importStaticsInstanceScope=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.springsource.ide.eclipse.commons.frameworks.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.springsource.ide.eclipse.commons.frameworks.ui.legacyconversion.done=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.core.runtime/.settings/org.springsource.ide.eclipse.commons.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | egit.pref.fixed.core_autoIgnoreDerivedResources=true 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Array_Deque.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Array_List.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Hash_Set.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Linked_Hash_Set.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Linked_List (1).launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Linked_List.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Main.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Priority_Queue.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/StacK.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/Tree_Set.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.core/.launches/VectoR.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.debug.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 7 |
8 |
9 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | .org.eclipse.egit.core.cmp 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.egit.core/.org.eclipse.egit.core.cmp/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/1021801232.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.jdt.core/1021801232.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/1865797976.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.jdt.core/1865797976.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/2157735601.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.jdt.core/2157735601.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/380491998.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.jdt.core/380491998.index -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache: -------------------------------------------------------------------------------- 1 | zC:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/src.zip}C:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/jrt-fs.jar -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt: -------------------------------------------------------------------------------- 1 | java -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache: -------------------------------------------------------------------------------- 1 | }C:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/jrt-fs.jar -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/savedIndexNames.txt: -------------------------------------------------------------------------------- 1 | INDEX VERSION 1.131+C:\Users\shubh\OneDrive\Desktop\Collection_FrameWork\.metadata\.plugins\org.eclipse.jdt.core 2 | 1021801232.index 3 | 380491998.index 4 | 1865797976.index 5 | 2157735601.index 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat: -------------------------------------------------------------------------------- 1 | Practical(IMPLEMENTATION)korg.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17}C:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/jrt-fs.jarzC:/Program Files/sts/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20221004-1257/jre/lib/src.zipjavadoc_location3https://docs.oracle.com/en/java/javase/17/docs/api/TheoryJRE_LIBJRE_SRC JRE_SRCROOT 2 | 3 | JUNIT_HOME ECLIPSE_HOME M2_REPO JUNIT_SRC_HOME -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.debug.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 |
8 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.launching/.install.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/Practical(IMPLEMENTATION)/2023/1/2/refactorings.history: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/Practical(IMPLEMENTATION)/2023/1/2/refactorings.index: -------------------------------------------------------------------------------- 1 | 1673737624851 Rename type 'ArrayList' 2 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/Practical(IMPLEMENTATION)/2023/1/3/refactorings.index: -------------------------------------------------------------------------------- 1 | 1673745845677 Rename type 'Vector' 2 | 1673745957232 Rename type 'Stack' 3 | 1673749152919 Delete element 4 | 1673749422945 Rename package 'com.masai' 5 | 1673798298629 Copy package 6 | 1673798309937 Delete element 7 | 1673798339161 Delete element 8 | 1673801461368 Rename type 'Queue_Interface' 9 | 1673801466214 Delete element 10 | 1673811979376 Copy package 11 | 1673811990108 Copy package 12 | 1673811999480 Delete element 13 | 1673812002226 Delete element 14 | 1673812004487 Delete element 15 | 1673812048403 Copy package 16 | 1673812094451 Delete element 17 | 1673812143353 Delete element 18 | 1673812151055 Delete element 19 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 7 |
8 |
9 | 10 | 11 |
12 |
13 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log: -------------------------------------------------------------------------------- 1 | 2023-01-14 18:49:34,428 [Worker-4: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 2 | 2023-01-15 07:52:52,902 [Worker-2: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 3 | 2023-01-15 19:47:04,897 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is out-of-date. Trying to update. 4 | 2023-01-16 03:07:55,925 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 5 | 2023-01-16 03:11:49,994 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 6 | 2023-01-16 03:14:42,465 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 7 | 2023-01-16 03:15:07,507 [Worker-0: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 8 | 2023-01-16 03:21:32,559 [Worker-1: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 9 | 2023-01-16 03:23:49,319 [Worker-1: Loading available Gradle versions] INFO o.e.b.c.i.u.g.PublishedGradleVersions - Gradle version information cache is up-to-date. Trying to read. 10 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.2.0.0.20220705-1221.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | %date [%thread] %-5level %logger{35} - %msg%n 5 | 6 | 7 | OFF 8 | 9 | 10 | 11 | 12 | ${org.eclipse.m2e.log.dir}/0.log 13 | 14 | ${org.eclipse.m2e.log.dir}/%i.log 15 | 1 16 | 10 17 | 18 | 19 | 10MB 20 | 21 | 22 | %date [%thread] %-5level %logger{35} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | WARN 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties: -------------------------------------------------------------------------------- 1 | #Cached timestamps 2 | #Mon Jan 16 03:23:59 IST 2023 3 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.pde.core/.local_targets/1673731575815.target: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | x86_64 9 | win32 10 | win32 11 | en_IN 12 | 13 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties: -------------------------------------------------------------------------------- 1 | #Sat Jan 14 18:54:07 IST 2023 2 | 0.Icon=C\:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico 3 | 0.Path=C\:\\Program Files\\Git\\bin\\sh.exe 4 | 0.Translate=true 5 | 0.Args=--login -i 6 | 0.Name=Git Bash 7 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
36 | 37 | 38 |
39 |
40 | 41 | 42 |
43 |
44 | 45 | 46 | 47 | 48 |
49 |
50 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 |
7 |
8 | -------------------------------------------------------------------------------- /.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.metadata/version.ini: -------------------------------------------------------------------------------- 1 | #Mon Jan 16 03:24:04 IST 2023 2 | org.eclipse.core.runtime=2 3 | org.eclipse.platform=4.25.0.v20220831-1800 4 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Collection_FrameWork 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practical(IMPLEMENTATION) 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Arrays_Class/Arrays_Class.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Arrays_Class/Arrays_Class.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Collections_Class.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Collections_Class.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/List_Interface/Array_List.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/List_Interface/Array_List.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/List_Interface/Linked_List.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/List_Interface/Linked_List.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/List_Interface/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/List_Interface/Main.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/List_Interface/StacK.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/List_Interface/StacK.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/List_Interface/VectoR.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/List_Interface/VectoR.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Map_Interface/Hash_Map.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Map_Interface/Hash_Map.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Map_Interface/Introduction.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Map_Interface/Introduction.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Map_Interface/Linked_Hash_Map.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Map_Interface/Linked_Hash_Map.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Map_Interface/Tree_Map.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Map_Interface/Tree_Map.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Queue_Interface/Array_Deque.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Queue_Interface/Array_Deque.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Queue_Interface/Introduction.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Queue_Interface/Introduction.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Queue_Interface/Linked_List.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Queue_Interface/Linked_List.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Queue_Interface/Priority_Queue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Queue_Interface/Priority_Queue.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Set_Interface/Hash_Set.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Set_Interface/Hash_Set.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Set_Interface/Linked_Hash_Set.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Set_Interface/Linked_Hash_Set.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/bin/Set_Interface/Tree_Set.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Practical(IMPLEMENTATION)/bin/Set_Interface/Tree_Set.class -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Arrays_Class/Arrays_Class.java: -------------------------------------------------------------------------------- 1 | package Arrays_Class; 2 | 3 | import java.util.Arrays; 4 | 5 | public class Arrays_Class { 6 | 7 | public static void main(String[] args) { 8 | 9 | 10 | /* basically this class is taking care of our 11 | normal primitive type array in this class 12 | we have some method which we use over our normal arrays 13 | like indexOf , binarySearch , sort and so on 14 | 15 | */ 16 | 17 | int[] arr = {1,2,3,4,5,6,7}; 18 | 19 | System.out.println(Arrays.binarySearch(arr, 4)); 20 | 21 | int[] arr1 = {200,23,5,2,7,3,90,34,23,5,6,2}; 22 | 23 | Arrays.sort(arr1); 24 | 25 | for(int i : arr1) { 26 | System.out.print(i+" "); 27 | } 28 | 29 | System.out.println(); 30 | Arrays.fill(arr1, 40); 31 | 32 | for(int i : arr1) { 33 | System.out.print(i+" "); 34 | } 35 | 36 | System.out.println(); 37 | 38 | } 39 | 40 | 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Collections_Class.java: -------------------------------------------------------------------------------- 1 | import java.util.ArrayList; 2 | import java.util.Collection; 3 | import java.util.Collections; 4 | import java.util.Comparator; 5 | 6 | public class Collections_Class { 7 | 8 | public static void main(String[] args) { 9 | 10 | /* 11 | this class is for collection classes 12 | in this class we have some method which we use in our 13 | collection object 14 | */ 15 | 16 | 17 | ArrayList arr1 = new ArrayList<>(); 18 | arr1.add(1); 19 | arr1.add(1); 20 | arr1.add(1); 21 | arr1.add(1); 22 | arr1.add(11); 23 | arr1.add(1); 24 | arr1.add(3); 25 | arr1.add(4); 26 | arr1.add(3); 27 | arr1.add(6); 28 | arr1.add(7); 29 | arr1.add(8); 30 | arr1.add(0); 31 | 32 | 33 | 34 | 35 | System.out.println(arr1); 36 | 37 | System.out.println(Collections.min(arr1)); 38 | System.out.println(Collections.max(arr1)); 39 | System.out.println(Collections.frequency(arr1, 1)); 40 | 41 | 42 | 43 | Collections.sort(arr1); 44 | 45 | System.out.println("Sort (LOW TO HIGH) -> "+arr1); 46 | 47 | Collections.sort(arr1, Comparator.reverseOrder()); 48 | 49 | System.out.println("Sort (HIGH TO LOW) -> "+arr1); 50 | 51 | 52 | } 53 | 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Map_Interface/Hash_Map.java: -------------------------------------------------------------------------------- 1 | package Map_Interface; 2 | 3 | import java.security.KeyStore.Entry; 4 | import java.util.ArrayList; 5 | import java.util.HashMap; 6 | import java.util.HashSet; 7 | import java.util.Iterator; 8 | import java.util.Map; 9 | import java.util.function.BiConsumer; 10 | 11 | public class Hash_Map { 12 | 13 | private static final BiConsumer Integer = null; 14 | 15 | public static void main(String[] args) { 16 | 17 | 18 | HashMap map1 = new HashMap<>(); 19 | 20 | 21 | map1.put(1, "Shubham"); 22 | map1.put(2, "Aman"); 23 | map1.put(3, "Chinmay"); 24 | map1.put(4, "Harshit"); 25 | 26 | 27 | System.out.println(map1); 28 | 29 | 30 | /* 31 | POINTS TO BE REMEMBER ABOUT HASHMAp 32 | 33 | 0.EXTENDS FROM ABSTRACTMAP(CLASS) , ABSTRACTMAP IMPLEMENTS (CHILD OF) MAP 34 | 1.order of insertion is not maintain 35 | 2.STORE ONE DATA(OBJECT) IN THE FORM OF KEY VALUE PAIR 36 | 3.keys are unique 37 | 4.value can be duplicate or same 38 | 5.if any key are already exist in hashMap then UPDATE with new one 39 | 40 | 41 | THERE ARE THREE METHODS FOR TRAVERSING IN HASHMAP 42 | 1.using a for-each loop (ONLY SUPPORTED TYPE SAFE COLECTION) by using of Map.Enrty method 43 | 2.using the forEach() method 44 | */ 45 | 46 | 47 | System.out.println("----------------------For-Each Loop----------------------"); 48 | 49 | /* 1.using a for-each loop 50 | 51 | here we use wrapper class because 52 | collection are only store objects 53 | and wrapper class is the representation 54 | of primitives data type like int , char and so on 55 | 56 | when we add primitive data type 57 | in collections they automatically 58 | converted into their respective Wrapper class 59 | and this process is called AUTO BOXING 60 | 61 | and we access or use the element 62 | that are converted into their 63 | respective Wrapper class they 64 | automatically converted into 65 | their original data type that is 66 | primitive data type and this process 67 | is called AUTO UNBOXING 68 | here we also use MAP.ENTRY 69 | because they converted the element into set 70 | */ 71 | for(Map.Entry el : map1.entrySet()) { 72 | System.out.println(el.getKey()+" ----> "+el.getValue()); 73 | } 74 | 75 | 76 | 77 | 78 | System.out.println("----------------------For-Each Method----------------------"); 79 | 80 | /* 2.using the forEach() method (JAVA 8 FEATURE) 81 | 82 | here we use lambda Expression for traversing 83 | we can give any name for e1,e2 84 | (e1,e2) is one pair (object) for hashmap 85 | e1 for key 86 | e2 for value 87 | */ 88 | 89 | 90 | map1.forEach((e1,e2)->{ 91 | System.out.println(e1+" -> "+e2); 92 | }); 93 | 94 | 95 | 96 | System.out.println("----------------------SOME METHOD OF HASHMAP----------------------"); 97 | 98 | 99 | System.out.println("Contains Method -> " + map1.containsKey(1)); 100 | System.out.println("Get Method -> " + map1.get(2)); 101 | System.out.println("IsEmpty Method -> "+map1.isEmpty()); 102 | System.out.println("Put Mathod -> "+map1.put(5, "Jayant") ); 103 | System.out.println("Contains Value Method -> "+ map1.containsValue("Shubham")); 104 | System.out.println("Contains Key Method -> "+ map1.containsKey(1)); 105 | System.out.println("Remove Method -> " + map1.remove(3)); 106 | //map1.clear(); 107 | //map1.keySet(); 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | } 120 | 121 | 122 | 123 | 124 | 125 | } 126 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Map_Interface/Introduction.java: -------------------------------------------------------------------------------- 1 | package Map_Interface; 2 | 3 | public class Introduction { 4 | 5 | 6 | /* 7 | 8 | it store the data in KEY VALUE format 9 | 10 | 11 | 1 : "SHUBHAM" 12 | key value 13 | 14 | 15 | we can use any data type for key as well as their value 16 | 17 | 18 | key are unique but value can be repeated or same 19 | 20 | if the key is same so they overwrite the old value with 21 | new value 22 | 23 | 24 | */ 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Map_Interface/Linked_Hash_Map.java: -------------------------------------------------------------------------------- 1 | package Map_Interface; 2 | 3 | public class Linked_Hash_Map { 4 | 5 | } 6 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Map_Interface/Tree_Map.java: -------------------------------------------------------------------------------- 1 | package Map_Interface; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | import java.util.TreeMap; 6 | 7 | public class Tree_Map { 8 | 9 | 10 | 11 | public static void main(String[] args) { 12 | 13 | 14 | TreeMap map1 = new TreeMap<>(); 15 | 16 | 17 | map1.put(1, "Shubham"); 18 | map1.put(4, "Aman"); 19 | map1.put(3, "Chinmay"); 20 | map1.put(2, "Harshit"); 21 | 22 | 23 | System.out.println(map1); 24 | 25 | 26 | /* 27 | POINTS TO BE REMEMBER ABOUT HASHMAp 28 | 29 | 0.EXTENDS FROM ABSTRACTMAP(CLASS) , ABSTRACTMAP IMPLEMENTS (CHILD OF) MAP 30 | 1.order of insertion is not maintain 31 | 2.STORE ONE DATA(OBJECT) IN THE FORM OF KEY VALUE PAIR 32 | 3.keys are unique 33 | 4.value can be duplicate or same 34 | 5.if any key are already exist in hashMap then UPDATE with new one 35 | 6.AUTO SORTING FUNCTIONALITY auto sort the key according to ascending order 36 | 37 | 38 | THERE ARE THREE METHODS FOR TRAVERSING IN HASHMAP 39 | 1.using a for-each loop (ONLY SUPPORTED TYPE SAFE COLECTION) by using of Map.Enrty method 40 | 2.using the forEach() method 41 | */ 42 | 43 | 44 | System.out.println("----------------------For-Each Loop----------------------"); 45 | 46 | /* 1.using a for-each loop 47 | 48 | here we use wrapper class because 49 | collection are only store objects 50 | and wrapper class is the representation 51 | of primitives data type like int , char and so on 52 | 53 | when we add primitive data type 54 | in collections they automatically 55 | converted into their respective Wrapper class 56 | and this process is called AUTO BOXING 57 | 58 | and we access or use the element 59 | that are converted into their 60 | respective Wrapper class they 61 | automatically converted into 62 | their original data type that is 63 | primitive data type and this process 64 | is called AUTO UNBOXING 65 | here we also use MAP.ENTRY 66 | because they converted the element into set 67 | */ 68 | for(Map.Entry el : map1.entrySet()) { 69 | System.out.println(el.getKey()+" ----> "+el.getValue()); 70 | } 71 | 72 | 73 | 74 | 75 | System.out.println("----------------------For-Each Method----------------------"); 76 | 77 | /* 2.using the forEach() method (JAVA 8 FEATURE) 78 | 79 | here we use lambda Expression for traversing 80 | we can give any name for e1,e2 81 | (e1,e2) is one pair (object) for hashmap 82 | e1 for key 83 | e2 for value 84 | */ 85 | 86 | 87 | map1.forEach((e1,e2)->{ 88 | System.out.println(e1+" -> "+e2); 89 | }); 90 | 91 | 92 | 93 | System.out.println("----------------------SOME METHOD OF HASHMAP----------------------"); 94 | 95 | 96 | System.out.println("Contains Method -> " + map1.containsKey(1)); 97 | System.out.println("Get Method -> " + map1.get(2)); 98 | System.out.println("IsEmpty Method -> "+map1.isEmpty()); 99 | System.out.println("Put Mathod -> "+map1.put(5, "Jayant") ); 100 | System.out.println("Contains Value Method -> "+ map1.containsValue("Shubham")); 101 | System.out.println("Contains Key Method -> "+ map1.containsKey(1)); 102 | System.out.println("Remove Method -> " + map1.remove(3)); 103 | //map1.clear(); 104 | //map1.keySet(); 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | } 122 | 123 | 124 | 125 | 126 | 127 | } 128 | -------------------------------------------------------------------------------- /Practical(IMPLEMENTATION)/src/Queue_Interface/Introduction.java: -------------------------------------------------------------------------------- 1 | package Queue_Interface; 2 | 3 | public class Introduction { 4 | 5 | 6 | /* 7 | 8 | Queue interface firstly introduce in JAVA VERSION 1.5 9 | 10 | it's follow FIFO 11 | 12 | FIFO - FIRST IN FIRST OUT 13 | 14 | 15 | IN HINDI : Queue MATLAB KATTAR JAISE BUS STATION PR LINE LAGTI HAI TICKET 16 | LENE KE LIYE , BANK M LINE LAGTI HAI AND SO ON. 17 | 18 | if we want to represent the group of individual objects prior to processing 19 | then we use queue interface 20 | 21 | 22 | 23 | [1,3,4,5,6,7,8,10] 24 | (front)head end(rear) 25 | 26 | 27 | 28 | head(front) : delete or remove elements in queue from front 29 | end(rear) : add elements in queue from rear 30 | 31 | 32 | CLASSES THAT IMPELEMNTS (CHILD OF) QUEUE INTERFACE 33 | 34 | 1.LINKEDLIST (ALSO IMPLEMENTS LIST INTERFACE) 35 | 2.PRIORITY QUEUE 36 | 3.ARRAYDEQUE 37 | 38 | 39 | 40 | 41 | 42 | 43 | */ 44 | 45 | 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Theory/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Theory/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Theory 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Theory/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /Theory/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /Theory/bin/Collection_Framework_In_JAVA.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Theory/bin/Collection_Framework_In_JAVA.class -------------------------------------------------------------------------------- /Theory/bin/Collection_Hierarchy.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Theory/bin/Collection_Hierarchy.class -------------------------------------------------------------------------------- /Theory/bin/What_Is_Collection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Theory/bin/What_Is_Collection.class -------------------------------------------------------------------------------- /Theory/bin/What_Is_Framework.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Collection-Framework/04d1d1abee7a82002a11fe692c42164beefcc0f0/Theory/bin/What_Is_Framework.class -------------------------------------------------------------------------------- /Theory/src/Collection_Framework_In_JAVA.java: -------------------------------------------------------------------------------- 1 | 2 | public class Collection_Framework_In_JAVA { 3 | 4 | 5 | /* 6 | COLLECTION FRAMEWORK IS JAVA API WHICH PROVIDES 7 | ARCHITECTURE TO STORE AND MANIPULATE GROUP OF OBJECTS 8 | 9 | 10 | 11 | AND THE COLLECTION FRAMEWORK PROVIDE THE IMPLEMENTATION OF THE 12 | CLASSES THAT THEY HAVE (ALGORITHAM) 13 | 14 | 15 | API -> API STAND FOR < APPLICATION PROGRAM INTERFACE > WHICH HAVE 16 | PREDEFINED CLASSES AND INTERFACES 17 | 18 | IN HINDI : COLLECTION FRAMEWORK HAME CLASSES OR INTERFACES DETA 19 | JISKI HELP SE HUM KAHI SAARE OBJECTS KO EK GROUP MAI 20 | RAKH SAKTE (COLLECTION M RAKH SAKTE J=HAI) 21 | OR HUM USS OBJECTS KO MANIPULATE (CHANGE - UPDATE) 22 | BHI KR SAKTE HAI OPERATION PERFORM KRKE 23 | OR COLLECTION HUM OPERATION PROVIDE KRTA KI 24 | APP ISS TYPE OPERATION ISS OBJECTS PR KR SAKTE HO 25 | 26 | 27 | 28 | 29 | WHERE IS COLLECTION FRAMEWORK IN JAVA ? 30 | 31 | IN JAVA.UTIL PACKAGE 32 | 33 | IF WE WANT TO USE COLLECTION IN OUR PROGRAM FIRAT WE HAVE TO IMPORT THAT 34 | 35 | 36 | SOME INTERFACE OF COLLECTION FRAMEWORK ->COLLECTION MAP SET LIST QUEUE ETC 37 | 38 | 39 | 40 | 41 | 42 | */ 43 | 44 | 45 | 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Theory/src/What_Is_Collection.java: -------------------------------------------------------------------------------- 1 | 2 | public class What_Is_Collection { 3 | 4 | /* 5 | 6 | ANY GROUP OF INDIVIDUAL OBJECTS WHICH ARE REPRESNTED 7 | AS A SINGLE UNIT IS KNOW AS THE COLLECTION OF THE OBJECTS 8 | 9 | FOR EXMAPLES : 1.COLLECTION OF DVDS. 10 | 2.COLLECTION OF STICKERS. 11 | 3.COLLECTION OF CLOTHS 12 | 4.COLLECTION OF PENS. 13 | 14 | 15 | IN HINDI : COLLECTION EK TYPE KA GROUP HOTA HAI OBJECTS KA 16 | (OBJECTS MEANS REAL WORLD ENTITY) OR JISSE WO STORE HOTA H USSE COLLECTION 17 | BOLTE HAI. OR JAB BHI HAMME COLLECTIONS KE OBJECTS KO USE KRNA HOTA HAI 18 | TOH FIRST HAM COLLECTION KO USE KRTE HAI. 19 | 20 | 21 | SIMPLE : 1.JHOLA MAI SABJI HAI -> YAHA PR JHOLA JO HAI EK COLLECTION KE RUP 22 | (TYPE) M SHOW HORA HAI OR USKE ANDER JO SABJIYA 23 | HAI WO OBJECT HAI US COLLECTION KI. 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | */ 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Theory/src/What_Is_Framework.java: -------------------------------------------------------------------------------- 1 | 2 | public class What_Is_Framework { 3 | 4 | 5 | /* 6 | 7 | A FRAMEWORK IS A SET OF CLASSES AND INTERFACES WHICH 8 | PROVIDE A READY-MADE ARCHITECTURE. 9 | 10 | FOR EXAMPLE : COLLECTIONN FRAMEWORK ITSELF 11 | 12 | BACISALLY IN FRAMEWORK WE HAVE ALREADY SOMETHING THAT WE USE 13 | TO DO OUR WORK 14 | 15 | FOR EXAMPLE : IF WE WANT TO CREATE A LIST SO HERE WE CAN 16 | USE LIST (LIST IS A INTERFACE IN COLLECTION FRAMEWORK) 17 | 18 | 19 | REAL LIFE EXAMPLE : 1.HAM APNE GHR M REHTE H JO HAMARE PAPA NE BANAYA HOTA H 20 | JAVA HUM KUCH BHI USE KR SAKTE HAI JAISE CAR, BIKE , TV , MOBILE ETC 21 | OR KUCH ADD YA BADAL BHI SAKTE HAI SO HERE 22 | PAPA NE HAME EK FRAMEWORK DIYA H JISSE HUM USE KR SAKTE 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | */ 33 | 34 | 35 | 36 | } 37 | --------------------------------------------------------------------------------