id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

txtTraParentesi


Estrazione
Da una testo (stringa) s, si estrae la sottostringa contenuta all'interno della prima coppia di parentesi tonde aperte-chiuse.
Per semplicità supponiamo che tutte le parentesi aperte siano poi chiuse, e che non ci siano parentesi tra parentesi.


txtTraParentesi("Belluno (BL) (ITA)") → "BL"
txtTraParentesi("Veneto (ITA)") → "ITA"
txtTraParentesi("Anche questa osservazione (pur pertinente)...") → "pur pertinente"

...Save, Compile, Run (ctrl-enter)

String txtTraParentesi(String s) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 350

Copyright Nick Parlante 2017 - privacy