public synchronized static void writeAllUserStocks(ArrayList<UserStocks> all) {
		File f = new File("userstocks.txt");
		FileWriter fr = null;
		try {
			fr = new FileWriter(f);
			BufferedWriter br = new BufferedWriter(fr);
			String s = "";

			for (UserStocks e : all) {
				s += e.getUsername() + " " + e.getTickername() + " "
						+ e.getNo();
				s += "\n";
			}
			br.write(s);
			br.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}