7 Posted Topics
Re: [QUOTE=webmasts]So to check If I understand, let say 6 raised to the power of 4 6^4 would be coded like this: math.pow(6, 4) do I have to use it in this form...6.0 and 4.0 using double? Will Int work?[/QUOTE] Yes.. taking int values will work but then you have to … | |
Re: hi.. I am writing the code for selection sort, you'll need to pass the numbers for sorting as command line arguments that is along with the command you use to run the java program e.g., java Selection 12,45,1,76,50 the code is as follows: class Selection { public static void main(String … | |
Re: hey there.. i think u typed a semicolon at the end of the letterGrade class.. plz check it out..if it solves the issue!! | |
Hi Friends, i made a window with a Panel and painted a text on it. Now i want to set a background color for the panel but it does not reflect in the window.. i am posting the code here.. Please let me know if anything is wrong with the … | |
Re: take the input as: int a,b; private Scanner In=new Scanner(System.in); System.out.println("Enter the First Number"); a=In.nextInt(); system.out.println("Enter the second number"); b=In.nextInt(); now write the methods or statements for calculating the values in various operations. But before using Scanner class just import java.util.*; ok!! Try this and tell me the result!! | |
Re: when we use the variables to compare somethig in Java and they do not have some value already given to them..then this error is likely to occur.. Just initialize the int variable with 0 e.g., int grade1=0; and the char variables with blank space.. e.g, char reply1=' '; and then … | |
Hi Friends..im new to this site and i need help. I need source code for removing duplicate values from an array of integers. please help me as soon as you can..Thanks a lot!! ![]() |
The End.