Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Yummy0987 / Java-Coding-Problems-Second-Edition Public forked from PacktPublishing/Java-Coding-Problems-Second-Edition Notifications You must be signed in to change notification settings Fork 0 Star 0 Code Pull requests 1 Projects Security and quality 0 Insights Additional navigation options Code Pull requests Projects Security and quality Insights FilesExpand file tree mainBreadcrumbsJava-Coding-Problems-Second-Edition/Chapter02/Copy pathDirectory actionsMore optionsMore optionsDirectory actionsMore optionsMore optionsLatest commit HistoryHistoryHistory mainBreadcrumbsJava-Coding-Problems-Second-Edition/Chapter02/Copy pathTopFolders and filesNameNameLast commit messageLast commit dateparent directory..P38_AsciiVsUnicodeP38_AsciiVsUnicode P38_EmojiP38_Emoji P38_ReadingWritingFileUTF8P38_ReadingWritingFileUTF8 P38_StringToBinaryEncodingsP38_StringToBinaryEncodings P39_CheckIndexSubRangeZeroLengthP39_CheckIndexSubRangeZeroLength P40_StringIndentityP40_StringIndentity P41_UnamedClassesMainP41_UnamedClassesMain P42_SnippetsInJavadocP42_SnippetsInJavadoc P42_SnippetsInJavadocPreJDK18P42_SnippetsInJavadocPreJDK18 P43_InvokeDefaultMethodsJDK16P43_InvokeDefaultMethodsJDK16 P43_InvokeDefaultMethodsJDK8P43_InvokeDefaultMethodsJDK8 P43_InvokeDefaultMethodsJDK9P43_InvokeDefaultMethodsJDK9 P44_ByteToHexStringP44_ByteToHexString P45_InnerClassesAndStaticsP45_InnerClassesAndStatics P46_AnonymousClassesAndStaticsP46_AnonymousClassesAndStatics P47_ErasureBridgeP47_ErasureBridge P47_ErasureGenericP47_ErasureGeneric P47_ErasureHeapPollutionP47_ErasureHeapPollution P47_ErasureVsOverloadingP47_ErasureVsOverloading P47_PolymorphicOverloadingP47_PolymorphicOverloading P48_XlintDefaultConstructorP48_XlintDefaultConstructor P49_ReceiverParameterP49_ReceiverParameter P50_ImmutableStackP50_ImmutableStack P51_CommonStringMistakeP51_CommonStringMistake P52_Common5NPEP52_Common5NPE P52_WorkingAroundNPEP52_WorkingAroundNPE P53_YieldStatementBlocksP53_YieldStatementBlocks P53_YieldSwitchExpressionP53_YieldSwitchExpression P54_CaseNullClauseInSwitchP54_CaseNullClauseInSwitch P55_EqualOperatorVsEqualsP55_EqualOperatorVsEquals P56_ClassicInstanceofP56_ClassicInstanceof P58_TypePatternMatchingInstanceofP58_TypePatternMatchingInstanceof P59_BindingVariableScopeInstanceofP59_BindingVariableScopeInstanceof P60_RewritingEqualsTypePatternInstanceofP60_RewritingEqualsTypePatternInstanceof P61_TypePatternInstanceofGenericsP61_TypePatternInstanceofGenerics P62_TypePatternInstanceofStreamP62_TypePatternInstanceofStream P63_TypePatternMatchingSwitchP63_TypePatternMatchingSwitch P64_GuardedPatternsSwitch1P64_GuardedPatternsSwitch1 P64_GuardedPatternsSwitch1JDK17P64_GuardedPatternsSwitch1JDK17 P64_GuardedPatternsSwitch2P64_GuardedPatternsSwitch2 P64_GuardedPatternsSwitch2JDK17P64_GuardedPatternsSwitch2JDK17 P65_TypePatternSwitchDominanceP65_TypePatternSwitchDominance P66_CompletenessInSwitchJDK20P66_CompletenessInSwitchJDK20 P66_CompletenessInSwitchJDK21P66_CompletenessInSwitchJDK21 P67_UnconditionalPatternsP67_UnconditionalPatterns P67_UnconditionalPatternsJDK17P67_UnconditionalPatternsJDK17 View all files You can’t perform that action at this time.