English
Open in Telegram

Thread Can anyone tell my why i am getting error at short x = cal.mul(5, 6);

3 messages · –
J
Can anyone tell my why i am getting error at short x = cal.mul(5, 6);
  1. K
    Write it as short x = cal.mul((short) 5, (short) 6); Integer literals in Java are of type int, so you need to cast the arguments to short in order to pass them to mul(short, short)
CCore Java | Java for BeginnersCore Java | Java for Beginners@codeitupjava · group · Tech
1 312members62writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count