- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I love programming, unfortunately, programming doesn't love me.
- Interests
- Java, C++, C# languages
11 Posted Topics
Hello guys would someone please help me fix my program. I have two classes the one is named GetValues and the other one is SampleReturn. The GetValues class has an error illegal start of expression in the line `public static String kuhaName()` . The code is below. GetValues class codes: … | |
Hello would someone please help me with my program, I'm stuck all day with this thing. The program runs, but I think the problem is a logical error. The fraction 1/4 + 2 1/2 should be equal to 2 3/4 but the program's result is 2 3/8. Another thing is … | |
Hello everyone! I'm currently having a problem with my program it doesn't loop properly please help me with it. The code is below. Thanks in advance! import java.util.Scanner; import javax.swing.JOptionPane; import javax.swing.*; public class Wewe{ public static void main(String[]args){ Scanner inp = new Scanner(System.in); boolean tryAgain; do{ System.out.print("\nInput username: "); … | |
Hello guys I have a problem in resizing the image in my java program here is the code: import java.awt.*; import java.applet.*; public class sampleCaseStudy extends Applet { private Image MyImage; public void init() { MyImage = getImage(getDocumentBase(), "manginasalmo.jpg"); MyImage.getScaledInstance(700, 100, Image.SCALE_DEFAULT); } public void paint(Graphics g) { g.drawImage(MyImage, 0, … | |
Hello I'm currently working with my Java program here is my code: import java.util.Scanner; public class StringAct{ public static void main(String[]args){ Scanner inp=new Scanner(System.in); System.out.print("Enter string: "); String a= inp.nextLine(); if(a=="angel"){ System.out.print("Valid"); } else{ System.out.print("Not Valid"); } } } this program asks the user to enter a string, the string … | |
Hey guys does anyone here knows what is the code for inserting the current day in a form? I'm creating an Employee Monitoring System. I have here a part of the codes of my program Private Sub Command1_Click() If Text1.Text = "2036251" Then Adodc1.RecordSource = "select * from Table4 where … | |
Guys kindly check this code of mine. Supposed to be Text3.text once inserted into Table1 should give the total work hours but instead, it gives a date, not time. Private Sub Command1_Click() Dim Str1$, Str2$, Str3$, Str4$ Text2.Text = DateTime.DateDiff("n", Text1.Text, Label1.Text) Str1 = Text2.Text \ 60 Str2 = Text2.Text … | |
Hello! I'm currently working with my monitoring system now, is there a code to append records from table 1 to table 2? Please help me guys! Thanks. | |
Hello everybody! I'm currently creating my first employee monitoring system here in Visual Basic 6. I have a problem with regards to my program, it has an error of no value given for one or more parameters. The code that I will show here is just a part of my … | |
I'm currently creating a program where a user should enter the correct color shown in it. This should be entered in text box. What code should I use to make the program accept both upper case and lower case text inputs? For example "red" should be equivalent to "Red" something … | |
Option Explicit Dim score As Integer Private Sub Command1_Click() Dim Values(3) As ColorConstants Values(0) = vbRed Values(1) = vbBlue Values(2) = vbGreen Dim RandomNumber As ColorConstants RandomNumber = Values(Rnd * 2) Label1.BackColor = RandomNumber Randomize End Sub Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As … |
The End.