Java Assignment Help.
#3

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
Take a look at how strings work. When modifying certain digits of something this is the easiest way to go.
If you read a bit about how to use them and what you can do with them youll probably find the answer quickly.

About your code: in the last line youre trying to get a double from the input. A double is just like a float but with higher precision. Its certainly not a String or (char)acter and so cant hold the character you entered, so you have to use a different datatype there.
so at the last line i have to change it to
Char ch = input.nextChar();

Still i need to figure out how to replace 2nd and 4th in num and replace it with integer d.
As well display the precedent and the letter that comes after ch before&after the number.
Reply


Messages In This Thread
Java Assignment Help. - by ColonelBurton - 01.11.2014, 16:35
Re: Java Assignment Help. - by Mauzen - 01.11.2014, 17:09
Re: Java Assignment Help. - by ColonelBurton - 01.11.2014, 19:15
Re: Java Assignment Help. - by IvanSb - 01.11.2014, 19:34
Re: Java Assignment Help. - by RaZVaN ^ xD - 02.11.2014, 00:28
Re: Java Assignment Help. - by Mauzen - 02.11.2014, 00:52
Re: Java Assignment Help. - by BroZeus - 02.11.2014, 08:07
Re: Java Assignment Help. - by Infinity - 02.11.2014, 08:17
Re: Java Assignment Help. - by BroZeus - 02.11.2014, 08:37
Re: Java Assignment Help. - by Infinity - 02.11.2014, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)