Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: it doesnt put up the text eplain difference between the class and find out what miss

  1. #1
    Junior Member
    Join Date
    Dec 2020
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default it doesnt put up the text eplain difference between the class and find out what miss

    package gestion_du_stock_de_magasin;

    import java.util.*;
    class management_of_stock {
    private int ch;
    public void management_of_stock() {
    Scanner Entree = new Scanner (System.in);
    Entree.useLocale(Locale.FRENCH);
    System.out.println("to put up an item push 1 ");
    System.out.println("to add an item push 2 ");
    System.out.println("to order an item push 3");
    System.out.println("to modify an item push 4");
    System.out.println("to retrail an item push 5 ");
    System.out.println("to sell an item push 6 ");
    System.out.println("choose the action to effect");
    ch=Entree.nextInt();
    System.out.println("You have choice : "+ch);
    System.out.println("thank you, we please to receive your attention " );
    System.out.println("please answer the next steps");
    }

    public void perform() {
    int action=ch;
    String nom_action= new String("");
    switch(action)
    {
    case 1 : nom_action = "You want to put up an item "; break ;
    case 2 : nom_action = "You want to add an item";break ;
    case 3 : nom_action = "You want to order an item";break ;
    case 4 : nom_action = "You want to modify an item";break ;
    case 5 : nom_action = "You want to retrail an item";break ;
    case 6 : nom_action = "You want to sell an item";break ;
    }
    System.out.println(nom_action);
    }
    }

    public class managementofstock{
    public static void main(String[] args) {
    management_of_stock numero = new management_of_stock();
    numero.perform() ;
    }
    }

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,145
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: it doesnt put up the text eplain difference between the class and find out what miss

    Sorry, I do not understand your problem.
    If there are error messages, copy the full text and paste it here.

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.

    http://www.java-forums.org/misc.php?do=bbcode#code
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Difference between interface and abstract class?
    By sreekanthgude in forum Java Theory & Questions
    Replies: 7
    Last Post: December 7th, 2018, 12:52 AM
  2. Replies: 2
    Last Post: October 9th, 2013, 08:36 AM
  3. What is the difference in declaring class variables?
    By Robertgif in forum Java Theory & Questions
    Replies: 3
    Last Post: September 18th, 2013, 12:52 AM
  4. What's difference between public class and abstract class?
    By Java95 in forum Java Theory & Questions
    Replies: 7
    Last Post: January 24th, 2012, 07:37 AM
  5. Difference between extending and importing a class
    By TP-Oreilly in forum Java Theory & Questions
    Replies: 8
    Last Post: December 5th, 2011, 05:53 PM