Results 1 to 16 of 16

Thread: Java

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15

    Smile Java

    , Java .

  2. #2
    Ronnie James Dio Snow's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 8,221
    , 23 if(); ...

    HardwareBG (: , (:
    MSI B550i Gaming Edge Wifi | Ryzen 9 5900X [Thermalright AXP-100C65 + Noctua A9x14] | G.Skill 2x16GB F4-3200C16Q-32GTZR | AMD RX 6800XT | EVO970 500GB + EVO850 250GB + EVO850 500GB + DS119j | Corsair SF750 Platinum | ASUS MG279Q | Razer DeathAdder V2 Pro | Keychron K6 Modded | SligerSM550

  3. #3
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15
    , . , Java . .. Integer , UpnApplication.java, Stack.java, UpnCalculator.java. , Stack. , . . : 1 3 5 * + 16, 1+3*5 = 16. 1 2 3 4 :1
    2
    3
    Stack.
    , ++ - Java .

  4. #4
    1+1=11 svr's Avatar
    Join Date: Sep:2006
    Location: Inferno, Act 1
    Posts: 790
    .
    MSI B450 Gaming Pro Carbon AC | Ryzen 9 5900x | HyperX Predator 3200 | Asus Strix 3090 | Kingston KC3000 2TB | WD Red 4TB | Dell G3223Q + LG 27UK650-W | Arctic Freezer 360 | Seasonic Focus GX-1000 | Lian Li O11 Dynamic

  5. #5
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15

  6. #6
    1+1=11 svr's Avatar
    Join Date: Sep:2006
    Location: Inferno, Act 1
    Posts: 790
    ?
    MSI B450 Gaming Pro Carbon AC | Ryzen 9 5900x | HyperX Predator 3200 | Asus Strix 3090 | Kingston KC3000 2TB | WD Red 4TB | Dell G3223Q + LG 27UK650-W | Arctic Freezer 360 | Seasonic Focus GX-1000 | Lian Li O11 Dynamic

  7. #7
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15
    31.12.09

  8. #8
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    , , , ...
    UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
    geniusloci: ) ; ) ; ) ? nope|r.i.p.

  9. #9
    Registered abUser ike's Avatar
    Join Date: Jul:2004
    Location: sofi
    Posts: 4,965
    Quote Originally Posted by System.gc() View Post
    , , , ...
    , , . , .
    Have no fear ike iz here.
    CPU Cx486DLC@40MHz, RAM 4MB, VGA Trident 512KB, HDD Conner 160MB, Monitor 14" Color

  10. #10
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    Quote Originally Posted by ike View Post
    , , . , .
    , ....


    Edit: ,
    Last edited by System.gc(); 24th December 2009 at 01:09.
    UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
    geniusloci: ) ; ) ; ) ? nope|r.i.p.

  11. #11
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,393
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  12. #12
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15
    ... . class UpnApplication.java:
    Code:
    import java.util.*;
    
    public class UpnApplication {
    
        public static void main(String[] args) {
            
            UpnCalculator calc = new UpnCalculator();
            Scanner in = new Scanner(System.in);
            boolean inputError = false;
    
            try {
                while(in.hasNext()){
                    while(in.hasNextInt()) {
                        calc.readOperand(in.nextInt());
                    }
                    if(in.hasNext()) {
                        calc.readOperation(in.next("[\\+\\-\\*\\/]").charAt(0));
                    }
                }
            }
            catch (InputMismatchException e) {
                inputError = true;
            }
    
            if(inputError) {
                System.out.println("FALSCHE EINGABE");
            }
            else if (calc.error()) {
                System.out.println("?");
            }
            else {
                System.out.print(calc.toString());
            }
    
        }
    
    }
    Last edited by Bombera; 22nd December 2009 at 20:27.

  13. #13
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    (:

    : Reverse Polish notation , , ? - , , . - ( , ) , [CODE] ( #), , -.

    , - .
    UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
    geniusloci: ) ; ) ; ) ? nope|r.i.p.

  14. #14
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15
    .. !!

  15. #15
    System.gc()'s Avatar
    Join Date: Apr:2007
    Location: back in time
    Posts: 1,075
    , ? , , , .
    UD3R|Q9550+1283|4x2 G.Skill@1066|MX500+1002FAEX+640AAKS+ST31 60|RX580-8GB|1841BLT|SS-760XP|Define7|z24i|Edifier S350DB
    geniusloci: ) ; ) ; ) ? nope|r.i.p.

  16. #16
    Registered User an4e's Avatar
    Join Date: Dec:2009
    Location: Wien
    Posts: 15
    ! - 3

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |