See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Emoticons Forbidden
#16
Hello, I'm new to Linux Lite OS and programming.
At the moment, I'm learning Java programming from a course at Udemy and I've encountered a
problem with empty spaces in outputs.

Here's part of the codes:

public String toString()    {        return first + " " + middle + " " + last;    }Name
myName = new Name("Cookie" + "Monster" + "Jr");System.out.println("myName: " +
myName.toString());



Then I compiled the codes and here's what it's shown on the Terminal:

mei@mei-Aspire-4750:~/Documents/java$ javac
NameTest.javamei@mei-Aspire-4750:~/Documents/java$ javac
Name.javamei@mei-Aspire-4750:~/Documents/java$ java NameTestmyName:  CookieMonsterJr



All the spaces are appearing right before the name. I'm using Linux's Text Editor. Could
this the reason why the codes are not working properly?
Reply


Messages In This Thread
Emoticons Forbidden - by Coastie - 05-21-2017, 05:39 PM
Re: Emoticons Forbidden - by Valtam - 05-21-2017, 06:10 PM
Re: Emoticons Forbidden - by bitsnpcs - 05-21-2017, 07:22 PM
Re: Emoticons Forbidden - by Coastie - 05-21-2017, 09:23 PM
Re: Emoticons Forbidden - by Coastie - 05-21-2017, 10:23 PM
Re: Emoticons Forbidden - by Valtam - 05-22-2017, 08:48 AM
Re: Emoticons Forbidden - by Coastie - 05-22-2017, 03:52 PM
Re: Emoticons Forbidden - by Valtam - 05-22-2017, 03:57 PM
Re: Emoticons Forbidden - by modtest - 05-22-2017, 05:47 PM
Re: Emoticons Forbidden - by modtest - 05-23-2017, 02:23 PM
Re: Emoticons Forbidden - by modtest - 05-23-2017, 02:29 PM
Re: Emoticons Forbidden - by Coastie - 05-23-2017, 02:38 PM
Re: Emoticons Forbidden - by Valtam - 05-23-2017, 02:40 PM
Re: Emoticons Forbidden - by Valtam - 05-23-2017, 02:41 PM
Re: Emoticons Forbidden - by modtest - 05-31-2017, 02:50 PM
Re: Emoticons Forbidden - by modtest - 07-24-2017, 05:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)