Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class prova {
- public static final String LLIBRE = "llibre";
- public static final String DOC = "documentació";
- public static final String VIDCER = "vidre o ceramica";
- public static void main(String[] args) {
- String tipus = "";
- boolean a_la_caixa_petita = true;
- boolean portaho_tu = true;
- boolean embolicar_amb_paper = true;
- boolean a_la_caixa_gran = true;
- if (tipus == LLIBRE) {
- a_la_caixa_petita = true;
- System.out.print("Cal posar-ho a la caixa petita \n");
- } else if (tipus == DOC) {
- portaho_tu = true;
- System.out.print("No ho posis a la caixa. Porta-ho tu \n");
- } else if (tipus == VIDCER) {
- embolicar_amb_paper = true;
- System.out.print("Cal embolicar abans amb paper \n");
- } else {
- a_la_caixa_gran = true;
- System.out.print("Cal posar-ho a la caixa gran \n");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement