No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am trying to make a code that makes a random point cloud that changes every five seconds for a minute. I have it so that it makes the inital cloud, but I am stuck on how to make it change every five seconds. private class newCloud implements ActionListener { … |
|
Whenever I load the object there are these random symbols around the data. public void Save() { try { System.out.println("Where would you like to Save?"); File thefile = new File(Input.next()); FileOutputStream fout = new FileOutputStream(thefile); ObjectOutputStream oos = new ObjectOutputStream(fout); oos.writeObject(list.getRoot()); oos.flush(); oos.close(); fout.flush(); fout.close(); } catch (Exception e1) { … |
|
I can get it to save then load but it does it at the same time and not seperatly public void Load() { try { System.out.println("Where would you like to Load from?"); BufferedReader reader = new BufferedReader(new FileReader(Input.next())); String line; int count = 0; list = new doublyLinkedList(); while ((line … |
|
I can't get my winning to not be zero. And I don't see why. [CODE]import java.util.*; public class Foothill { public static void main(String[] args) { int loop = 1; int winnings =0 ; while ( loop != 0) { String s1 = PullOne(); String s2 = PullOne(); String s3 … |
|
I am new to java, and have this assignment do when I have to count consonants and vowels among other thigs , and I already wrote a program that works. However, I feel that there is still room for improvement specifically in the vowel and consonant counts. Could you help … |