Hi. Im making a flash cards program and need help with making graphics, making a menu, making it so that they can go back in and access the decks, and making it so i can give it o other people, and a few other things.

Here's my code:

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		

		
		// Title Display
		System.out.println("FLC v0.5");
		System.out.println();
		
		
		
		// Deck Enter Area
		System.out.println("Enter Deck Name");
		Scanner deckscanner = new Scanner(System.in);
		String deckname = deckscanner.nextLine();
		System.out.println();
		
		
		
		// Card Number Entry
		System.out.println("Enter How Many Cards You Would Like");
		Scanner cardnumscanner = new Scanner(System.in);
		String cardnumstring = cardnumscanner.nextLine();
		System.out.println();
		System.out.println();
		System.out.println();
		
		
		
		// Converts cardnumstring to int (called cardnumint)
		int cardnumint = Integer.parseInt(cardnumstring);
		cardnumint = cardnumint + 1;
		
		int counter = 1;
		
		while (counter < cardnumint){
			// Front of the card
			System.out.println("Card #" + counter);
			System.out.println("Front of Card");
			Scanner frontcardscanner = new Scanner(System.in);
			String frontcardstring = frontcardscanner.nextLine();
			
			
			
			// Back of the card
			System.out.println("Back of Card");
			Scanner backcardscanner = new Scanner(System.in);
			String backcardstring = backcardscanner.nextLine();
			System.out.println();
			System.out.println();
			
			
			counter++;
		}
	}
	

	
	
}

(I left some personal notes in there)

Help is greatly appreciated.

Thanks!

Recommended Answers

All 6 Replies

Could someone please help???

That link isn't what i want. Someone pleasehelp with the questions i asked!

hmmm I can still see only this question

Could someone please help???

any my tired magic ball drew paint in Swing (if is finally "making graphics"), can you be little bit concrete

My questions were about gui, a menu, and being able to reaccess the decks, and also saving the decks

Thanks for the link. Now my question is how to store files and read them later. In this case it will be for reaccessing the decks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.