Hi,
Am i correct then in saying that using Filewriter with the same filename will overwrite the existing file? Or would it append?
CC.
Type: Posts; User: CruelCoin
Hi,
Am i correct then in saying that using Filewriter with the same filename will overwrite the existing file? Or would it append?
CC.
Hi All.
I'm trying to create a counter that will survive the program being closed and reopened.
I need to start with a txt file that has one line in it with 2000 as the text
On running the...
Wolfram is a computational engine.
Lecturer gave us a wolfram api and we are building a Java program around it, in the form of points 1-6 i list in my OP.
1: Prompt user for question and send...
Good morning all.
For my main assignment for Java we are working on a program using WolframAlpha.
I would love to hear some suggestions as to what i could do for extra functionality.
The...
That helped, solved and working.
Thank you sir.
Hi all.
This program is meant to do the following:
1: create a new txt file
2: write 100 random integers to it
3: read it back into an array
4: sort the array
5: print contents of array
Hi All.
Fixed this.
Change this:
while (input.hasNextLine())
{
String line = input.nextLine();
to this:
Hi.
At line 38 is this: assistantTotal += input.nextDouble();
This is in the IF block.
Just for info, the file is comprised of many lines of the following format.
FirstName1 LastName1...
You can use math.round to round to 1.0
Hi All,
Having some difficulties with this section.
The program runs but is giving me some errors.
Not sure on how to fix these.
Any guidance would be greatly appreciated.
My code:
Hi all,
I am writing a program (weekly assignment) that takes numbers from a text file called Q2.txt, ignores white space, and gives the user a printout of the sum total and average of all the...
Hi all,
I'm finding it difficult to get my head around the concept, but i managed to construct this for a section of my weekly assignment.
class Q4d
{
public static void main (String []...
Hi all.
Am almost there with the problem below.
I need to print an integer pyramid between 1 and 15, but when i get above 10 (11 to 15) i have a spacing problem and not sure how to fix this.
...
Hi all.
Making a simple maths game that takes a user input as an answer for the sum of two randomly generated numbers.
Each time i run it, i get 7+7, 2+2, 3+3 etc, but never two different...
Hi all.
I'm having some trouble with a Loan repayment Calculator.
It seems to be working fine, but it give me answers very different to that of online calculators.
Any tips greatly...
Thanks! i have posted that convention link to my student group.
Cheers,
CC.
Thanks all.
1: The only reason i set a class with a number is that is what is being asked of me by my lecturer. e.g: questions 1-9, name the programs and classes within as q1 q2 q3 etc.
2: Why is...
Hi all,
I'm not looking for the answer but rather a point in the right direction would be most welcome.
I have used two methods to tell the current time from System.currentTimeMillis()
The...
Only on our second lecture thus far. Not reached that point yet.
Hi All,
having some trouble with calculating pi from the below.
Instaed of reading 3.14xxx it's giving me 3.28xxx instead. Not sure where i'm going wrong on the maths.
double pi =...
Hi,
Thanks for that. Problem(s) solved.
I'm still getting to grip with how sensitive code is.
Cheers,
CC.
Hi all,
First time poster from Ireland here.
Anything i know from programming is based off a very quick dip into codeacademy and the first lecture given thus far.
Below is my code for taking...