import java.util.Scanner; 3 public class Funwithcharacters { /* Type your code here */ public static void main(String[] args) { Funwithcharacters labobject = new Funwithcharacters(); String word = "happy birthday"; // Set string int index = 2; // Set specified index to 2 System.out.println(Labobject.checkcharacter(word, index)); index = 5; // Set specified index to 2 System.out.println(labobject.checkCharacter(word, index)); word = "happy birthday 2 you"; index = 15; // Set specified index to 2 System.out.println(labobject.checkcharacter(word, index)); word = "happy birthday!"; index = 14; 1/ Set specified index to 2 System.out.println(Labobject.checkcharacter(word, index)); }
Character
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)