Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Java by code_guru ( 6 years ago )
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		for(String x : input.split(" ")) {
		    System.out.println(x.charAt(x.length()-1));
		}
	}
}

 

Revise this Paste

Your Name: Code Language: