Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

menu

Ads

 
 

Share on Google+Share on Google+

reihane nafisi
menu
1 Answer(s)      5 years and 11 months ago
Posted in : Java Beginners

Hi,i want write the menu that repeat several time?

Ads
View Answers

September 20, 2011 at 4:25 PM


import java.io.*;
import java.util.*;
class CreateMenu
{
    public static void createFile(){

    }
    public static void writeToFile(){

    }
    public static void readFile(){

    }
    public static void renameFile(){

    }
    public static void deleteFile(){

    }

    public static void main(String[] args) 
    {
        boolean exit=false;
        Scanner input=new Scanner(System.in);
        do{
        System.out.println("1 Create File");
        System.out.println("2 Write To File");
        System.out.println("3 Read File");
        System.out.println("4 Rename File");
        System.out.println("5 Delete File");
        System.out.println("6 Exit");

        System.out.print("Enter your choice: ");
        int choice=input.nextInt();
        switch(choice){
         case 1:
            createFile();
            break;
         case 2:
            writeToFile();
            break;
         case 3:
            readFile();
            break;
         case 4:
            renameFile();
            break;
         case 5:
            deleteFile();
            break;
         case 6:
            exit=true;
            System.exit(0);
            break;
          }
        }
        while(!exit);
     }
}

Ads









Related Tutorials/Questions & Answers:
menu
menu  Hi,i want write the menu that repeat several time
menu
menu  fibonaci & prime no. display in menu driven in java programme
Advertisements
Menu
Menu  Pl make a program which generates the following output. "Select from this menu" 1. Array 2. Stack 3. Queue. 4. Exit. If users press 1, then it will go in 1. Array. Welcome in Array. press 1. for Insertion press 2
menu driven
menu driven   menu driven programm in decimal to binary binary to decimal
menu driven
menu driven  display the 1-30 prime no. and fibonacie series in menu driven programme
menu with scrollbar
menu with scrollbar  I want to use MenuBar with Scrollbar. I tried... and every component should inside the panel. I tried it but menu bar... java.awt.*; public class menu extends JFrame { MenuBar bar; Menu file,setting,rate,help
menu problem
menu problem  Hi to all , I am inserting a menu in my jsp page.i have downloaded(free) a menu .In which 4 files are as below. 1. index.html 2. menu.css 3. menu.js 4. jquery.js I have edited
DropDown Menu
menu that has the list of Page 1- Page 5. if i select page 1 it will display only... is the problem.. for example; if i select page 1 in my dropdown menu, and click
Version of struts-menu>struts-menu dependency
List of Version of struts-menu>struts-menu dependency
creaing a menu - Java Beginners
creating a menu in JavaScript  How we can create a 3-level menu in java script
menu drive programm in java
menu drive programm in java  calculate area of circle, square,rectangele in menu driven programme in java
menu drive programm in java
menu drive programm in java  calculate area of circle, square,rectangele in menu driven programme in java
menu driven programme
menu driven programme   calculate the area of circle, square, rectangle in menu driven programme in java
Menu s - JSP-Servlet
Menu s  How to create menubar & menus & submenus in jsp
drop down menu
drop down menu  drop down menu using html
Menu Bar prob.
Menu Bar prob.  I want a menu to be displayed in each page of my swing appl. how to go abt
highlight menu item html
highlight menu item html  highlight menu item in html or CSS   <body id="index"> <div id="menu"> <ul> <li class...; </ul> </div> <!-- menu --> </body>
creating pop up menu
creating pop up menu   how to create a pop up menu when a link in html page is clicked using jquery? and the link should be a text file   Please visit the following links: http://www.roseindia.net/tutorial/jquery
context menu overlapped in IE8
context menu overlapped in IE8  I developed a contex menu in XHTML while opening it is overlapped in border of IE8 browser. even i have tried change the zaxis in css. I am using like below
Jquery Slide-up Menu
Jquery Slide-up Menu  Hello, Excellent site. I am learning Jquery and I can produce a slide-down menu but don't know how to make a slide-up menu/nav bar to go at the bottom of the web page. Can you show a way how this can
HTML - menu tag example
HTML - menu tag example Description : The <menu> is a tag of HTML. Which is used to create a menu list in our web page. Code : <!DOCTYPE...>HTML -- menu tag.</h1> <p>Creates a menu list
Add menu - IDE Questions
Add menu  sir,i m student and learning netbean in which i want to develop web application but i cant find how to add menu item(not the case for java application where menu can be added from palette)so that when i run
tree menu delete node
tree menu delete node  I have crated a tree menu having various sub nodes now i want to delete parent node and also want to delete sub nodes when parent node is deleted........i am using servlet and giving nodeid to servlet
Artifacts of struts-menu
List of Artifacts of struts-menu maven depenency
Dojo Menu and Menu Item
Dojo Menu and Menu Item          In this section, you will learn about the menu and how to create it in dojo. Try Online: Menu and Menu Item Menu : This is the widget models
Creating Menu - MobileApplications
to create our own menu system? How to navigate between the screens( eg from 1st
i am getting an error in adding a menu item to a menu.
i am getting an error in adding a menu item to a menu.   i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way
Menu Shortcuts
Menu Shortcuts       The MenuItem class also provides a feature of menu shortcuts and speed keys. You must be familiar with the menu shortcuts such as Ctrl-P which is used to give
Maven Dependency struts-menu >> 1.2
You should include the dependency code given in this page to add Maven Dependency of struts-menu >> struts-menu version1.2 in your project
Maven Dependency struts-menu >> 2.4.1
You should include the dependency code given in this page to add Maven Dependency of struts-menu >> struts-menu version2.4.1 in your project
Maven Dependency struts-menu >> 2.3
You should include the dependency code given in this page to add Maven Dependency of struts-menu >> struts-menu version2.3 in your project