Computer Science, asked by anishasaha25, 8 months ago

write a Java program to assign a sentence and find smallest word of the sentence ​

Answers

Answered by taxef2002
0

Answer:

STEP 1: START

STEP 2: DEFINE String string="Hardships often prepare ordinary people for an extraordinary destiny"

STEP 3: DEFINE word = " ", small = " ", large = " ".

STEP 4: Make object of String[] words

STEP 5: SET length =0.

STEP 6: string = string + " "

STEP 7: SET i=0.

Similar questions