Can somebody explain rint function with positive and negative numbers? Please |
|
asked by Catlover (catlover) 7 years ago | |
2 | |
Output Of: System.out.println(Math.rint(-96.5)); |
|
asked by Satendra singh (skshooda) 7 years ago | |
1 |
Shall we accept a string through the method of Scanner instead of buffer or it will reduce our marks |
|
asked by Manoj Sharma (sharmamanoj860) 7 years ago | |
2 |
Examples for an expection |
|
asked by Navami S (resee) 7 years ago | |
1 |
guysss cant believe just 1 more paper to go after todays paper yippe extremly xcited have to cntrol it though atb to everyne |
|
asked by Prachi Singla (praci) 7 years ago | |
1 |
Answer ASAP 1)How,where is lvalue of a variable stored?How can it b accessed? 2)Can v say that the subscripted variable of an array's elements r their lvalues? 3)Does neew operator provide an unique vaue to lvalue of every instance we create in our program? 4)In Sumita Arora seperators n delimiters r not mentioned as tokens but in APC ,they r?Can some1 clarify? 5)does call by reference pass the lvalue of actual parameters? 6)Dooes call by reference always require composite data type? 7)Does call by value require the rvalue of actual parameters? I know its a bit late but plz reply. |
|
asked by Prathamesh Dhake (oisix) 7 years ago | |
2 |
bye ATB. my midnight fuel finished 😂😂😂🤣 |
|
asked by Anushagh (anushagh) 7 years ago | |
2 | |
Guys try this logic for Fascinating Number; I've broken down the program into bits so that it'll be easier to comprehend. Its done using Strings,Arrays,Sorting and checking... import java.util.*; class Fascinating { public static void main() { //accepting System.out.println("Enter Number: "); Scanner sc=new Scanner(System.in); int n=sc.nextInt(); String temp=Integer.toString(n*1)+Integer.toString(n*2)+Integer.toString(n*3); int[]a={1,2,3,4,5,6,7,8,9}; char[]ch=temp.toCharArray(); //sorting for(int i=0;i<ch.length-1;i++) { for(int j=0;j<ch.length-i-1;j++) { if(ch[j]>ch[j+1]) { char aa=ch[j]; ch[j]=ch[j+1]; ch[j+1]=aa; } } } //counting boolean b=false; int count=0; for(int i=0;i<ch.length;i++) { if(ch[i]==0) continue; else { if(((int)ch[i]-48)==a[i]){ b=true; count++; } else b=false; } } //printing if(b==true&&count==9) System.out.println("Fascinating Number!"); else System.out.println("Not Fascinating Number!"); } } |
|
asked by Rochan HM (rochana_hm3) 7 years ago | |
2 |
any1 still alive........i mean awake.[lol] now the doubt ...explain Sring args[]. |
|
asked by Jayant Chaudhary (jayant002) 7 years ago | |
1 |
suppose i wanna input my values in the accept function over the function over loading program, would the buffered reader syntax come under this function or the main function? |
|
asked by Samyukta Narasimhan (sam_01) 7 years ago | |
1 |
Page 262 |
ICSE chat