Milorad Jekic's Profile

About

 
Points: 13
Gender: Male
Birthday: October 31, 1992
Relationship: In a Relationship
Political Views: Liberal
Birthplace: Belgrade
Current City: Novi Sad

Education

 
Journalism: 2011 - 2015

Pages

Contact

 
milorad.jekic

Drop files in here
or click to pick manually
Milorad Jekic
November 4, 2015 · Public

Just completed Java tutorial on codeacademy! :)

Milorad Jekic
October 29, 2015 · Public

@Bucky haha


Milorad Jekic
October 27, 2015 · Public

Check out Game of Code :D


Milorad Jekic
October 24, 2015 · Public

ok, so today i started practicing on codingbat.com
its great site cus u have small exercises for java.
among a lot of exercises is this one which i did last

*************
Given a string of even length, return a string made of the middle two chars, so the string "string" yields "ri". The string length will be at least 2.

middleTwo("string") → "ri"
middleTwo("code") → "od"
middleTwo("Practice") → "ct
"************

I succeeded in creating this program alone, thus there was not button called solution which prints code for you.

code goes like this:

public String middleTwo(String str) {

int x = str.length();
int first = (x/2)-1;
int second = (x/2)+1;
return str.substring(first, second);
}

Its not a big deal i know, but it is for me as im pure beginer :D

Milorad Jekic
October 24, 2015 · Public

Java
867 Followers