Robel T. Fesshaye

Infinite Innovation

  • Home

Arrays

Java Arrays Part One-26 Problems with Solutions

January 18, 2016

Problem-1 Given an array of ints, return true if 6 appears as either the first or last element in the array. The array will be length 1 or more. Example firstLast6({1, 2, 6}) → true firstLast6({6, 1, 2, 3}) → true firstLast6({13, 6, 1, 2, 3}) → false Solution public boolean firstLast6(int[] nums) { return(nums[0]==6 … [Read more…]

Posted in: Java Tagged: Arrays

Recent Posts

  • How I Passed the AWS SysOps – Associate (SOA-C02) Exam
  • How I Passed the Certified Kubernetes Application Developer (CKAD) Exam
  • How I Passed the Certified Kubernetes Administrator (CKA) Exam
  • How I passed the AWS Solutions Architect (Associate) Exam

Categories

  • App Dev (4)
  • AWS Solutions Architect – Associate (6)
  • Certifications (5)
  • Electrical Engineering (1)
  • Java (7)
  • PHP & SQL (2)
  • Windows OS (4)

Archives

Tags

#Apache #BlockPorn #DualScreen #Fonts #OpenDNS #Port80 Arrays autosave Electron SQLServer Strings Substrings

Copyright © 2025 Robel T. Fesshaye.

Me WordPress Theme by themehall.com