Welcome to the Forum! Please read this topic
to learn how to post code correctly and other useful tips for newcomers.
If you work real hard, follow a reasonable study guide that teaches you Java fundamentals in the proper order, have reasonable (no, changed to 'above average') aptitude for programming, and are committed to devote the time needed to succeed, you should be able to do what you've described in 12 to 18 months. Maybe a little longer for the mobile applications.
Please let us know what book you're currently using, start at the beginning, and let us know when you're having problems.