38 Posted Topics
Hi, I m new to android mobile appn devlp. Pls suggest me study materials for that. I hav 2 years of xprns in core java appl devlp. I want full detail of 1. how to learn ? that means where to start ? 2. simulators or emulators available 3. Text … | |
Re: WHAT IS CONSTRUCTOR -------------------- 1. A constructor creates an Object of the class and by initializing all the instance variables and creating a place in memory to hold the Object. 2. It is called using "new " Why we Need Constructor ----------------------- 1. For simple programs , initializing can be … | |
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]Read This[/URL] @tobine . At least try to do that, and after that ask doubts. | |
Re: @kramerd: Line No 9; return true;// if it is not divisible by 100 and divisible by 4 , then its a leap year. | |
Re: [CODE]public class Test{ public static void main(String[] args) { assert args.length==3; } } [/CODE] @solomon Your code is perfectly right, problem is that you have to enable assertion by either java -ea Test arguments Or java -enableassertion Test arguments Hope you cleared. | |
Re: Add a scrollview and in that add JButtons(programmatically). | |
Re: @janineXD. Look carefully the 17th line int N = Integer.parseInt(args[0]); this means that parse the input(command line argument) given to Wrapper class Integer. So to run without exception you should compile like this java Partition 2 Refer the following site to understand command line line arguments [URL="http://www.roseindia.net/java/beginners/cmnd-line-arguments.shtml"]Command line Argument [/URL] … | |
Re: //This is java forum // read two values (Obtained point and Maximum points) double percentage = (Obtained Point/Maximum Point)*100 //-----------> This gives you % of // the points. printf("Percentage %0.0f",percentage); if(percentage>=90) printf("A GRADE"); else if(percentage>=80) printf("B GRADE"); else if(percentage>=70) printf("C GRADE"); else if(percentage>=60) printf("D GRADE"); else if(percentage>=50) printf("E GRADE"); else … | |
Re: @rizla. At least post the complete code as it is. You can post the complete code by clicking the [CODE] button above the message editor. | |
Re: Hi Festus, Mention your ideas and your design and make your question more specific. Everyone one will assist you. All the best. | |
Re: For getting 6.5 as value, change the code in class child line number15 as follows this.value = ++value; Try it, and reply asap. | |
Re: [QUOTE=;][/QUOTE] Jon.kiparsky gave you good suggestion. You should work with all swing components so that you can make your OOPS concepts stronger. Extract your src file in /Program File/Java/jdk ... And go through those files. Try to use Google search for good tutorial sites. =============> All the Best <================= | |
Re: [CODE]import java.util.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Number; public class OddEven{ public static void main(String[] args)throws Exception{ BufferedReader bufRead = new BufferedReader(new InputStreamReader(System.in)); String strNumber; int number=2; System.out.println("Enter a number:"); strNumber = bufRead.readLine(); number = Integer.parseInt(strNumber); if (number % 2 == 0) { System.out.println(" Even Number Entered is : "+number); … | |
Hi all, I have no idea about C#. I know that its a good language +****************************************************+ | I DON'T NEED ANY HYPERLINKS( EXCEPT:Good Sites) | +*****************************************************+ My questions are the following ------------------------------- 1. What is the difference between C#, C++,VB.NEt? 2. What is .Net , is C# and C++ .Net … | |
List<InputStream> pdfs = streamOfPDFFiles; List<PdfReader> readers = new ArrayList<PdfReader>(); I saw many programmers using this syntax . I didnt get it? Can anyone help me to expalin this in detail ie. <InputStream> what does this mean? and can i implement this same idea with any other code which is simpler? | |
Re: Explicit means done by the programmer. Implicit means done by the JVM or the tool , not the Programmer. For Example: Java will provide us default constructor implicitly.Even if the programmer didn't write code for constructor, he can call default constructor. Explicit is opposite to this , ie. programmer has … | |
Re: This is a simple program that reads Input from Keyboard. [CODE]import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.String; public class BufExamp{ BufferedReader br_line; String inputString; public BufExamp() { br_line = new BufferedReader(new InputStreamReader(System.in)); inputString = new String(); try{ System.out.print("Enter Something : "); inputString = br_line.readLine(); }catch(Exception err) { System.out.println("Error :"+err);} System.out.println("You have … | |
Re: There are two types of polymorphism 1. compile time polymorphism 2. run time polymorphism. Compile time polymorphism is functions and operators overloading. Runtime time polymorphism is done using inheritance and virtual functions.[Eg: function overriding] | |
Re: why cant you implement this into separate function and call it with a parameter . The parameter should be the file name. | |
Re: C# and Java both are good languages they have similar structure too. DATA BASES *********** For database to include in java applications it has many Connectivity drivers, JDBC is the Java DataBase Connectivity. It is used to connect database connectivity API s like ODBC (Open DataBase Connectivity) JDBC is a … | |
Re: Hi, Both languages are good. My companies need Java . So learning java will not be an obstacle in your carrier. As jon.kiparsky told you. It is not the the language which you select but how much you know about the language. All the best. My opinion : Java is … | |
I want detailed explanation about static int var; final int var; static final int var; Please explain it in the memory implementation level. If there is any mistake in these please explain. __________________ | |
Re: [QUOTE=;][/QUOTE] Objective C is good and easy to learn. All u need id SDK. you cant learn anything without doing , so u need a Mac and sdk in it. First you should have a good idea about Objective C. So go though 1. Programming in Objective-C 2.0 by Stephen … | |
What is the difference between pointer and reference Please explain in detail. I want its full concept , so pls explain in detail | |
Re: [CODE]import javax.swing.*; import java.awt.*; class drawer extends JPanel { Color color; int x; drawer(int x,Color color){ this.color=color;//color of rectangle this.x=x;//size } public void paintComponent(Graphics g) { super.paintComponent(g); g.drawRect(0,0,x,x); g.setColor(color); g.fillRect(0,0,x,x); } } public class layers { public static void main(String[] args) { JLayeredPane layerd=new JLayeredPane(); layerd.setSize(800,800); layerd.setVisible(true); layerd.add(new drawer(50,Color.BLUE),2); layerd.validate(); … | |
Re: It is a simple html code In you message append a string like this Example Visit <a href="http://google.com">Go to google</a> Explanation ************ Visit : is the word that appear before the link <a href="http://google.com"> : This is the actual html tag that works behind Go to Google : It is … | |
Re: You can add label at specific location by [CODE]// create a label JLabel jl_Name = new JLabel("NEW_PROGRAMMER"); //Location jl_Name.setBounds(int,int,int,int); /* first parameter : Starting X point second parameter : Starting Y point third parameter : How much pixels to right fourth parameter : How much pixels downwards */ //Add label … | |
Re: A class can implement many interfaces. this is done by class className implements iterface1,interface2, interfcae3 { } | |
Re: This is a different quest Step 1. read the string (for eg : myString) Step2: get each character in the string by the method myStinr.charAt(); upto to the length of the string. Step 3: then check each character with its ASCII value | |
Re: If you are a beginer first you make a Digital Clock. And modify it to an Alarm Clock. Hope you got what i mean. | |
Re: [QUOTE=;][/QUOTE] First you have to read the file for that Make a File object and read its contents using BufferedReaderObject.readLine(); this will return a string. with values VAL LEU SER PRO ALA etc.. next is to convert this each valueinto corresponding letter by nested if conditions. Continue this while(!feof()) +****************+ … | |
Re: [QUOTE=;][/QUOTE] Why you are struggling with array of arry why cant u implement it using Class like these public class className{ String strName; int something; double something; } and use this class object in a loop . | |
Re: what do you meant by Looking out for software development projects! Explain, in detail. Do you want to make a project. | |
Re: What is your mode function for? Please explain the purpose of mode function. And where is your problem? | |
I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it? | |
Re: This is the code for what you asked . you can modify it as you wish. This will not run or show Exception if your system has protection with Anti-virus or some access permission problem. >>>>>>>>>> Do Not use the code for anything to harm any system <<<<<<<<<< [CODE]import java.lang.Runtime; … | |
Re: char myChar = (char) System.in.read(); Try it, if not working pls reply immediately. | |
Re: You can get char from a string using the charAt(int); method. its reurn type is char In your case you can use it as follows char c = a.charAt(0); // this will help you in normal case. What happens if the user give input with more than one character? :) |
The End.