Facebook
From Hot Mockingjay, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 54
  1. public class Client {
  2.  
  3.         public static void main(String[] args) {
  4.                
  5.                 Server server = new Server();
  6.                
  7.                 double a = 0, b = 0, c = 0;
  8.                
  9.                 //Ovdje unijeti a i b
  10.                 // a = ..
  11.                 // b = ..
  12.                
  13.                 c = server.Saberi(a, b);
  14.                
  15.                 //Ispisi poruku i varijablu c na ekran
  16.  
  17.         }
  18.  
  19. }
  20.  
  21.  
  22.  
  23.  
  24. public class Server {
  25.        
  26.         public Server() {}
  27.        
  28.         public double Saberi(double a, double b)
  29.         {
  30.                 double c = a + b;
  31.                
  32.                 return c;
  33.         }
  34.  
  35. }
  36.