Skip to content
Maennche Software Development logo
  • Home
  • Expertise
    • AI Services
    • Marketing
    • Software Development
  • Blog
  • Solution Maps
    • C++ Solution Map
    • Java Solution Map
    • Python Solution Map
    • Visual Basic Solution Map
  • FAQ
  • Contact
  • Log In
×
  • Home
  • Expertise
    • AI Services
    • Marketing
    • Software Development
  • Blog
  • Solution Maps
    • C++ Solution Map
    • Java Solution Map
    • Python Solution Map
    • Visual Basic Solution Map
  • FAQ
  • Contact
  • Log In

Given the String variable address, write an expression that returns the position of the first occurrence of the String “Avenue” in address .

LANGUAGE: JAVA

CHALLENGE:

Given the String variable address, write an expression that returns the position of the first occurrence of the String “Avenue” in address .

SOLUTION:


address.indexOf("Avenue")

Posted in Java, Learn To Code, Solution Maps

Posts navigation

← Given a String variable named sentence that has been initialized, write an expression whose value is the the very last character in the String referred to by sentence.
Given three String variables that have been declared and given values, firstName, middleName, and lastName, write an expression whose value is the initials of the three names: the first letter of each, joined together. So if firstName, middleName, and lastName, had the values “John”, “Fitzgerald”, and “Kennedy”, the expression ‘s value would be JFK”. Alternatively, if firstName, middleName, and lastName, had the values “Franklin”, “Delano”, and “Roosevelt”, the expression’s value would be “FDR”. →

Additional Resources

Account

Frequently Asked Questions

Privacy Policy

Terms and Conditions

Matthew Maennche logo icon

Get In Touch!

1216 E. Kenosha St Suite 273, Broken Arrow, OK 74012

(918) 352-6109

© 2017 - 2025 Maennche Software Development. All Rights Reserved.

Scroll To Top