- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Boring
- Interests
- Programming
16 Posted Topics
Hello, I want to do horizontal fragmentation of a table say employee. But fragmentation is often related to distributed databases. So i want to ask how can i do this on my single home computer? Could anyone list out the steps that should be performed. I saw the concept of … | |
Re: html is not a programming language. I support Java but that doesn't mean other languages like c# are not capable which Java is capable of. Choosing a programming language also depends on an individual, his/her interest etc. Some people also have a view that learning multiple programming languages instead of … | |
Re: I don't know whether this is an good way of coding but i tried converting String to binary and i don't think Java uses ASCII it uses UNICODE CODE POINT. Anyways what you can do is first convert your String to byte array by using the [B]getBytes()[/B] method and then … | |
Re: I think you are unnecessarily making your code tough [QUOTE]System.out.println("Enter the two integers to be used: "); [/QUOTE] Just get these two numbers.[CODE]double op1=scanner.nextDouble();[/CODE] Similarly the second operand and then after asking the operator from the user check the operator in if statement whether it is '+' or "*" etc … | |
Re: As per my information there is no prerequisite for becoming an OCPJP (Oracle Certified Professional Java Programmer). Yes for becoming an OCPWCD, OCPBCD you have to be a OCPJP. For more inforamtion you can visit the official site or just google it. | |
Re: i am also a beginner in Java so this code is tough for me but then also i would like to advice you that why are you increasing your LOC(Line of Code) by doing[CODE]private int a = 0; private int b = 6; private double myAmount = 0; private double … | |
Re: You mean to say you want to achieve console clearance through Java code? Or your aim is to just clear console screen not considering the java code? | |
Re: @NexG-- this is because you are putting a semi-colon at the end of for loop. What you have written is[CODE]for(int i=1; i <= n; i=i+2);[/CODE] It should have been [CODE]for(int i=1; i <= n; i=i+2)[/CODE]i.e without semi-colon.So this was the correction from SYNTAX-POINT-OF-VIEW but i think the summation answer will … | |
Re: [QUOTE]// i was able to determine whether it is a prime number or not.[/QUOTE] Your program to find a prime number is incorrect. | |
Re: I am not able to understand your problem perfectly.See as and when versions are upgraded new facilities are added. I think you are saying first the method foo() was taking 1 argument and now 2 arguments but from Java 5 i.e. Tiger if you are not sure that a method … | |
Re: can you post your code. | |
Re: [CODE]RequestDispatcher rd= request.getRequestDispatcher("/Addtocart");[/CODE] I think it should have been [CODE]RequestDispatcher rd= request.getRequestDispatcher("Addtocart");[/CODE] | |
Re: @miltondollar- what are you trying to achieve? According to your program you are trying to print "*" in a particular fashion and you are importing the swing package????? | |
Re: You want to enter numbers in an array then why are you declaring an String array. Go for an integer array. You can do it this way [CODE] int[] num; // declaring an integer array Scanner s=new Scanner(System.in); System.out.println("How many numbers ?"); int how_many=s.nextInt(); num=new int[how_many]; // creating the array … | |
Re: I think when we are taking an numeric value like an int, double from user as an input it is always better to go for the Scanner class instead of BufferedReader class because if we are using the latter one then we have to again parse it. | |
Re: @coco24----what are you trying to achieve through your code...? As you said " I need to take the value from the arguments in the run configuration" So you are passing the value of counter variable i to method f() instead of taking the value from user at run time. |
The End.