Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


reihane nafisi
menu
1 Answer(s)      3 years and a month ago
Posted in : Java Beginners


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


Advertisement
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);
     }
}


Related Tutorials/Questions & Answers:
menu
menu  fibonaci & prime no. display in menu driven in java programme
menu
menu  Hi,i want write the menu that repeat several time
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  display the 1-30 prime no. and fibonacie series in menu driven programme
menu driven
menu driven   menu driven programm in decimal to binary binary to decimal
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
menu driven programme
menu driven programme   calculate the area of circle, square, rectangle 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 drive programm in java
menu drive programm in java  calculate area of circle, square,rectangele in menu driven programme in java
creaing a menu - Java Beginners
creating a menu in JavaScript  How we can create a 3-level menu in java script
drop down menu
drop down menu  drop down menu using html
Menu s - JSP-Servlet
Menu s  How to create menubar & menus & submenus in jsp
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>
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
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
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
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
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
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
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
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
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
Create Menu Bar in SWT
Create Menu Bar in SWT       This section illustrates you how to create a menu bar. In SWT, the classes Menu and MenuItem of package org.eclipse.swt.widgets is allowed
menu bar in javascript - JSP-Servlet
menu bar in javascript  sir i need to display menu bar with some background color.in each menu,there are some values to display as menu.again if i select each value,again a sub menu to display.plz send me some code. menubar
Tree Structure Catalogue Menu Display
Tree Structure Catalogue Menu Display  How best can I display a tree structure for a catalogue menu ? One option is to use an applet, but theres a 30000 node limit to the one im using. Is there any way other than an applet
fn for footbar menu - Java Beginners
fn for footbar menu  function get_footer_menu() { $output = ''; $count = 0; $pages = get_pages(); foreach ($pages as $page) { if($count > 0) { $output .= ' | '; } $output .= ''.$page->post_title.''; $count
having problem with menu ans sub menu items css ...plz help!!
having problem with menu ans sub menu items css ...plz help!!  PLZ help ...this is my html menu > <div id="content"> <div >... id="menu"> > <li><a href="#">mother</a><
 

 

 

DMCA.com