#Hi, i'm extremely new to Java. I want to format a inputted sort code to follow the format "00-00-00"

11 messages · Page 1 of 1 (latest)

earnest gorge
normal dragonBOT
#

This post has been reserved for your question.

Hey @earnest gorge! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

neon mist
#

Here are some topics I’d recommend googling. You’ll probably find everything you need pretty quickly.

  • how to get input java
  • how to convert int to string Java
  • how to convert string to int Java
  • how to concatenate strings Java
  • how to split strings java
  • how to get a substring java
earnest gorge
#

ty

#

Ive managed to figure out the scanner for inputs (i think)

neon mist
earnest gorge
neon mist
neon mist
# earnest gorge tysm

No problem. After sololearn, try to take some courses on data structures and algorithms and object oriented programming if sololearn doesn’t cover it (it might cover those topics). After you figure all that out, you’ll probably have most of the basics down.