net-3.5

How can I split a string in Java?

Imagine I have this string: string thing = "sergio|tapia|gutierrez|21|Boston"; In C# I could go: string[] Words = thing.Split('|'); Is there something similar in Java? I could use Substring and indexOf methods but it is horribly convoluted. I don't want that. ...

I changed the name of the WPF form and now it refuses to launch the application.

This is probably a very simple fix. I clicked the form in the Solution Explorer. Pressed F2 to rename it. Renamed it "MyForm.xaml". Pressed enter. Tried launching the application but I get this error: Cannot locate resource 'window1.xaml'. ...

How can I save something without showing a SaveFileDialog()?

I made a program to take a screenshot of the screen. How can I save the image without prompting the user for imput? ...