Comment

waiswa joel
question,
April 30, 2009 at 5:12 PM

please could you write out a code which will display the days of the week when a user enters any number from 1 to 7, when 1 represents monday,2represents tuesday ,3represents wednesday,4 represents thursday, 5 represents friday,6 representssaturday and 7 represents sunday But the code is to be implemented using the switch statement and the if statement thank you so much
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

switch statement
switch statement   i want to write a java program that computes Fibonacci,factorial,string reversal and ackerman using switch case to run as a single program 

Tools For Java Technology

The Switch statement
. To avoid this we can use Switch statements in Java. The switch statement is used... of a variable or expression. The switch statement in Java is the best way to test.... Here is the general form of switch statement: switch (expression){ case 1 

Java Beginners

Switch Statement
Switch Statement  How we can use switch case in java program ?   Note:-Switch case provides built-in multiway decision statement.It... switch case statement. The program displays the name of the days according to user 

Java Beginners

Switch Statement with Strings in Java
Switch Statement with Strings in Java  Switch Statement with Strings in Java 

Java Interview Questions

Java switch statement
Java switch statement  What restrictions are placed on the values of each case of a switch statement 

Java Tips and Examples

Switch Statement example in Java
more about the switch statement in Java. The following java program tells you... Switch Statement example in Java    ... for implementing the switch statement. Here, you will learn how to use the switch statement 

Java Beginners

What is the difference between an if statement and a switch statement?
What is the difference between an if statement and a switch statement?   Hi, What is the difference between an if statement and a switch statement... values). Whereas the Switch statement offers you multiple choice of option from 

Core Java

Java Switch Statement
Java Switch Statement       In java, switch is one of the control statement which turns the normal flow... more about the switch statement click on:   http:/www.roseindia.net/java 

Java Tips and Examples

Switch
statements. To avoid this we can use Switch statements in Java. The switch statement... of a variable or expression. The switch statement in Java is the best way to test.... Here is the general form of switch statement: switch (expression){ case 1 

Java-Tutorials

Switch Statement in java 7
Switch Statement in java 7 This tutorial describes the if statement in java 7. This is one kind of decision making statement. Switch Statements : The switch statement is used when you want to test many statements based on some 

Java-Tutorials

Strings in Switch statement
Strings in Switch statement In this section, you will learn about strings in switch statements which is recently added feature in Java SE 7. Using JDK 7, you can pass string as expression in switch statement. The switch statement 

Java Tips and Examples

Switch case in java
Switch case in java In this section we will learn about switch case in java..., and java, switch case is used . switch  is a selection control mechanism used... if statementswitch allow the user to select a option from multiple options 

Core Java

switch Java Keyword
:  -- The switch statement in java language enables the user to select... switch Java Keyword       The switch is a keyword defined in the java programming language. Keywords 

Java Tips and Examples

Java - The switch construct in Java
Java - The switch construct in Java       Switch is the control statement in java which.... In this Program you will see that how to use the switch statement 

General

Master Java In A Week
Master Java In A Week Master Java Programming Language in a week.... We will use literals in addition to variables in Java statement. While writing... if and if-else statements. To avoid this we can use Switch statements in Java. The switch 

Java Beginners

i need to replace this if statement code with switch case code
i need to replace this if statement code with switch case code   i need to replace this code with switch case for(int i=0;i<100;i++){ if((i...){ switch(i/j){ case 3: System.out.println ("java 

General

Find Capital using Switch-Case statement
Find Capital using Switch-Case statement In this Java Tutorial section, we are going to find the capital of our states using Switch-Case statement. For this, we have created two arrays i.e. array of states and array of capitals. Then we 

Java-Tutorials

Switch Case in Java
case will take place. Example of Switch Statement in Java: import java.io.... if-then and if-then-else statements. As switch statement allows in-numerous possible execution paths.... Switch statements with String cases are supported in Java SE 7 but the earlier 

Java Beginners

using if and switch stmt - Java Beginners
be assumed. Write a program using "switch and if statement" to compute net amount...using if and switch stmt  A cloth showroom has announced...(); switch(menu) { case 1: System.out.print("Quantity: "); int q1 = scan.nextInt 

Programming Tutorials

Master java in a week
;    Class Declaration: Class is the building block in Java...; The main method is the entry point in the Java program and java program can't run... is always first thing that is executed in a java program. Here is the main method 

Java Beginners

programes on switch
=input.nextInt(); switch(choice){ case 1...; Java number of days in given month 

Java Beginners

save switch data into database - Java Beginners
save switch data into database  switch(menu) { case 1://add...(); switch(menu) { case 1: System.out.print("Enter student ID: "); int ID...:3306/register","root","root"); Statement st=con.createStatement(); int i 

PHP Questions

Switch statement in PHP
Switch statement in PHP  HII, Explain about switch statement in PHP?   hello, Switch statement is executed line by line. PHP executes the statement only when the case statement matches the value of the switch 

Java Beginners

java if statement
java if statement  If statement in Java 

Java Beginners

switch functions - Java Beginners
switch functions  I am writing a script for use in a computer based... your month of hire:") switch(n) { case(n="January"): document.write("Last... friend, This is running code, switch option using in javaSctipt 

Java Beginners

switch case instead of if else
switch case instead of if else  How to write code in switch case instead of if else in Java 

Programming Tutorials

Core Java Interview Question, Interview Question
and interfaces that are loaded by a Java program. Question: How does a try statement.... Question: What is the difference between an if statement and a switch statement... Core Java Interview Question Page 23   

Java Interview Questions

Java Question
/certification/topic13.html http://www.roseindia.net/java/master-java/interface.shtml Thanks...Java Question  can u give me one expample in which conditions we... in java includes only abstract methods i.e. methods have signatures only (or we 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 18       Question: Is &&= a valid Java operator? Answer: No, it is not. Question: Name the eight primitive Java 

Java Interview Questions

Switch Case - Java Interview Questions
Switch Case  int x=100000; switch(x) { case 100000: printf("Lacks"); } output= Lacks I want reason why x matches switch case although range for int is in between something -32678 to +32676. Plz give me ans quickly 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 15  ... is to provide access to the Java runtime system. Question: How many times may.... Question: What is the purpose of the finally clause of a try-catch-finally statement 

Java Magazine Questions

Java Question
Java Question  how can we increment the value of database SQL by using the java servlet program ? plz help me   Hi Friend, Try...:3306/test", "root", "root"); Statement stmt=con.createStatement(); ResultSet 

Java-Tutorials

Break Statement in java 7
Break Statement in java 7 In this tutorial we will discuss about break statement in java 7. Break Statement : Java facilitate you to break the flow... of your loop (do-while, while, for or switch statement). In switch statement we 

Java Tips and Examples

Java - Break statement in java
Java - Break statement in java     ... statement is used in many programming languages such as c, c++, java etc. Some... statement is used in while loop, do - while loop, for loop and also used in the switch 

WebSevices Questions

Internet and Web related questions for Web Master.
Internet and Web related questions for Web Master.   Explain the difference between the Internet and Web. What are Web browsers? Explain the two main... is Java? What are the applications of Java that you can use for Web designing 

Java-Tutorials

Continue Statement in java 7
Continue Statement in java 7 In this tutorial we will discuss about continue statement in java 7. Continue Statement : Sometimes you need to skip block... statement in loops. In java 7, Continue statement stops the current iteration 

Java Beginners

Question
Question   When there is an exception in my program how java runtime system handles 

General

Change Background of Master Slide Using Java
Change Background of Master Slide Using Java  ... to create a slide then change background of the master slide. In this example we are creating a slide master for the slide show. To create slide show we 

Java Beginners

question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area 

Java Beginners

question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area 

Java Beginners

question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word 

General

Java Control Statement
statementJava supports two selection statements, if and switch...Java Control Statement Control flow statement is a statement that is used...; }else { //statement;}  3.  Switch case statement 

Java Beginners

JAVA statement - Java Beginners
JAVA statement  The import statement is always the first noncomment statement in a Java program file.Is it true?  Hi Friend, No,it is not true.If your class belongs to a package, the package statement should 

Java Beginners

question
question  how to capture web snippets using java or java script 

Java Beginners

if else statement in java
if else statement in java  if else statement in java explain with example 

Java Beginners

question
question  why java is platform independent in nature 

Java Beginners

if else statement in java
if else statement in java  explain about simple if else statement and complex if else statement in java with an example 

Java Beginners

question
question  how to solve the problem of The requested resource is not available+java+eclipse 

Java Beginners

question
question  select from table using jsp , java bean and mysql 

Java Beginners

question
question  which language is leading the world java or .net and which language followed by all the Oops principles either java or .net 

Java Beginners

QUESTION
QUESTION  please atach java tutorial to my email   Hello Friend, Please visit the following link: Java Tutorial Thanks 

Java Beginners

question
question  Dear Sir, could you please send me a simple example of java and database connectivity with java and sql   Please visit the following link: JDBC Tutorials 

Java Beginners

question
question  do you have any idea about the following concept,give me Java code for A COMPARATIVE STUDY ON PERSONALIZATION IN INFORMATION RETRIEVAL WITH SHARING OF THE CONCEPT BASED USER PROFILES using Java 

Java Beginners

Question
Question  Sir, give me a java program to count the number of tokens , given a string and a seperator 

Java Beginners

question
question  Sir, Please send me Java Swing source code for video streaming , it's very urgent 

Java Beginners

question
question  Good Morning Sir, Please give me Java source code for Peer-to-Peer Streaming 

Java Beginners

question
question  Good afternoon Sir, please send me the Java source code for Search engine 

JavaScript Questions

question
question  how to display the uploaded video file size in database using java or javascript 

Java Beginners

question
question  Sir, Please give me a source code for client server socket programing in java 

Java Beginners

question
question  Sir, Please help me to develop a simple search engine model in java , send me some codes 

Java Beginners

question
question  Please give me a code for search engine using java and mysql 

Java Beginners

question
question  i need a sample java code for concept based user profile, and search engine personalization 

Java Beginners

question
question  i need a code for time comparison in the basis of hour in java, based on grigorian calendar 

Java Beginners

question
question  Good Afternoon, code to display the employees on leave,and approve that leave for manager.using JPanel+mysql+Java 

Java Technology Tutorials

Case Java Keyword
; The java keyword "case" is used to label each branch in the switch statement in java program. In other word Case is a java keyword... matches value that defined through a preceding switch keyword. In the java 

Core Java

Break statement in java
Break statement in java Break statement in java is used to change the normal control flow of  compound statement like while, do-while , for. Break... is also used in switch case. Break statement allow a force termination of  

Java Interview Questions

Java callable statement
Java callable statement  What is callable statement? Tell me the way to get the callable statement 

Java Beginners

question
question  Good Afternoon Sir, Please give me a client Server Socket programming using jsp and java with mysql connection 

Java Beginners

Question
Question  Sir, give me a Java program to read data from keyboard up to names , sort in alphabetical order using bubble sort 

Java Beginners

question
question  i need to select data from database using mysql+java script+html   Please specify some more details 

Java Beginners

question
question  Good afternoon Sir, how to solve the problem of The requested resource is not available+java+eclipse if you can play a demo 

Java Beginners

question
question  Good Morning Sir, submit attendance to database using system IP address with current system date and time.using JPanel+mysql+Java 

Java Beginners

question
question  how to unzip afile using huffman algorithm in java   Hi, Please see at Huffman example. Thanks 

Java Beginners

question
question  Sir, how to display web snippets for a perticular query for eg:web snippets for apple how to implement this concept in my java project please help me 

Java Beginners

question
question  Sir , i have a starting trouble to start my search engine project , please help me to start my project , please send me some relevant java codes 

Java Beginners

question
question  please give me the relevant modules and details to start java coding for "Deriving Concept-based User Profiles from Search Engine Logs" it's very urgent 

Java Beginners

question
question  Good Afternoon Sir, give me the source code to submit attendance to data base using System IP Address with system date and time.using JPanel+mysql+java 

Java Beginners

Question
Question  Sir, please help me to write a JAVA program to read data from keyboard up to names and sort in alphabetical order using bubble sort 

Struts Questions

question
Action in JSP  more than one actions done in a jsp in struts2 and controll go in different java class   Have a look at the following link: Sruts Tutorials 

Java Beginners

question
question  Sir, How to stream video on one computer which is playing on another PC in LAN using java + socket / RMI . if you have any idea about that please help me and give the source code 

Java Beginners

question
question  good afternoon sir, please send me a simple Jsp or Java code to display a calendar with Indian public holidays,current date and time.It is very urgent,please consider and me as soon as possible 

Java Beginners

Question
program style java interview questions and answers  Good afternoon sir could you please send me program style java interview questions and answers for one year experianced candidates.ie ,the questions like find out the result 

Java Beginners

question
question  Dear Sir, Could you please send me a simple and standard example including Java bean class , use of that bean class in JSP   ...://www.roseindia.net/jsp/loginbean.shtml http://www.roseindia.net/jsp/java-beans.shtml 

Java Beginners

Question
java interview questions and answers for one year experianced candidates  Good afternoon sir could you please send me program style java interview questions and answers for one year experianced candidates.ie ,the questions like 

Java Beginners

question
question  Sir, If i have a frame with two button sign in and cancell using java swing .If i am clicking a sign in button using user name... the source code using Java Swing 

Java Interview Questions

Question
Question  Good afternoon sir could you please send me program style java interview questions and answers for one year experianced candidates.ie ,the questions like find out the result of given code(to find out result from 

Java Beginners

question
to develop my java project 

Java Beginners

question
question  i need to select some details form database and that will displays on the same jsp page which is already contains some other details ,mustn't go to next page while i am clicking a link. have any option in jsp or java 

Java Beginners

question
question  Good after noon Sir, Please send me the code of the problem given below.it's urgent code to display employees on absent and manager can approve,and send a notification message to an employee.using JPanel+mysql+Java 

Java Beginners

question
all attendances marked )-using JPannel+java + mysql 

Java Beginners

question
question  Hi good morning Sir, Use grid -That displays employee name,employee_id,status(P/A),check box or Approve button. (Button in each row of the grid and below a button for approving all attendances marked )-using java/jsp 

Java Beginners

question
question  Hi good morning Sir, Use grid -That displays employee name,employee_id,status(P/A),check box or Approve button. (Button in each row of the grid and below a button for approving all attendances marked )-using java/jsp 

Java Beginners

question
,jsp and simple java script.i don't know ajax 

Java Beginners

question
scroll pane using java swing .If i am clicking a search button then i want... connection. please help me to create this and send me the source code using Java 

Java Beginners

Java Class Question?
Java Class Question?  b.Write an application that prompts the user to make a choice for a Coffee cup size, S for Small, T for Tall, G for Grande...=input.next().charAt(0); switch(ch){ case 'S 

Java Beginners

question
and simple java script   // login.jsp <%@ page language="java" contentType...; // validation.jsp <%@ page language="java" contentType="text/html; charset=UTF-8...;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding 

Java Beginners

question
question  Sir, If i have a frame with one text field and one button search using java swing .If i am clicking a search button then i want... of frame . please help me to create this and send me the source code using Java 

JDBC Questions

Question
in connection database with the java code. import java.sql.*; public class 

Java Beginners

question
to implement these all in a java , please help me Note:?web-snippet? denotes the title 

Java Beginners

question
on Leave Another grid to show the employees who are on leave Using JPannel,java 

Advertisements Advertisements
 

 

 

DMCA.com